Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stackless Python 2.7.13 [create new branch "2.7-stackless"] #131

Open
wants to merge 4 commits into
base: 2.7
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions recipe/brand_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def patch_get_version(msg):
lines = iter(content)
with open(get_version_file, 'w') as fh:
for line in lines:
if line.strip().startswith('PyOS_snprintf(version, sizeof(version)'):
if line.strip().startswith('PyOS_snprintf(version, sizeof(version)') and "Stackless" in line:
fh.write(' PyOS_snprintf(version, sizeof(version),\n')
fh.write(' "%.80s ' + msg.replace('"', '\\"') + ' (%.80s) %.80s",\n')
fh.write(' "%.80s Stackless %.80s ' + msg.replace('"', '\\"') + ' (%.80s) %.80s",\n')
else:
fh.write(line)

Expand All @@ -37,5 +37,5 @@ def patch_get_version(msg):
if msg == '<undefined>':
msg = "| packaged by conda-forge |"

patch_platform(msg)
# patch_platform(msg) # not required for stackless
patch_get_version(msg)
1 change: 1 addition & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if [ `uname` == Linux ]; then
--prefix=$PREFIX \
--with-tcltk-includes="-I$PREFIX/include" \
--with-tcltk-libs="-L$PREFIX/lib -ltcl8.5 -ltk8.5" \
--enable-stacklessfewerregisters \
CPPFLAGS="-I$PREFIX/include" \
LDFLAGS="-L$PREFIX/lib -Wl,-rpath=$PREFIX/lib,--no-as-needed"
fi
Expand Down
23 changes: 16 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{% set version = "2.7.13" %}
{% set sha256 = "a4f05a0720ce0fd92626f0278b6b433eee9a6173ddf2bced7957dfb599a5ece1" %}
{% set version_major = "2" %}
{% set version_minor = "7" %}
{% set version_micro = "13" %}
{% set version = [version_major, version_minor, version_micro]|join('.') %}

{% set md5 = "c01210c08328f4afecb5d4c95d8af0ae" %}

package:
name: python
version: {{ version }}

source:
fn: Python-{{ version }}.tgz
url: https://www.python.org/ftp/python/{{ version }}/Python-{{ version }}.tgz
sha256: {{ sha256 }}
fn: stackless-{{ [version_major, version_minor, version_micro]|join }}-export.tar.bz2
url: http://www.stackless.com/binaries/stackless-{{ [version_major, version_minor, version_micro]|join }}-export.tar.bz2
md5: {{ md5 }}
patches:
- osx-dist.patch # [osx and x86_64]
- win-find_exe.patch # [win]
Expand All @@ -23,6 +27,8 @@ build:
- vc9 # [win]
script_env:
- python_branding
features:
- stackless

requirements:
build:
Expand All @@ -48,15 +54,18 @@ test:
- pydoc -h
- python-config --help # [unix]
- idle -h
requires:
- stackless

about:
home: http://www.python.org/
home: http://www.stackless.com/
license: PSF
summary: General purpose programming language

extra:
recipe-maintainers:
- jakirkham
- jjhelmus
- msarahan
- pelson
- akruis