diff --git a/recipe/brand_python.py b/recipe/brand_python.py index d58bee0b2..38603bbe6 100644 --- a/recipe/brand_python.py +++ b/recipe/brand_python.py @@ -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) @@ -37,5 +37,5 @@ def patch_get_version(msg): if msg == '': msg = "| packaged by conda-forge |" -patch_platform(msg) +# patch_platform(msg) # not required for stackless patch_get_version(msg) diff --git a/recipe/build.sh b/recipe/build.sh index 580ed63d8..3c4c597c3 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -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 diff --git a/recipe/meta.yaml b/recipe/meta.yaml index a67afa215..8f348d721 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -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] @@ -23,6 +27,8 @@ build: - vc9 # [win] script_env: - python_branding + features: + - stackless requirements: build: @@ -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