-
Notifications
You must be signed in to change notification settings - Fork 10
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
error building using Python 3.7.4 on OS X #8
Comments
Hi. The 3.7 branch is still work in progress. We hope to finish it soon. Please use the "develop" branch for now. |
Can the develop branch be used to build Python 3.7? What version of Python is required to run the develop branch? |
The develop branch currently builds Python v3.5.1. We are working to finalize the 3.7 branch and merge it. |
If you want to use your own sources instead of the Infinidat FTP, you can make the following changes: diff --git a/buildout-build.cfg b/buildout-build.cfg
index 7949b88..509dda5 100644
--- a/buildout-build.cfg
+++ b/buildout-build.cfg
@@ -27,7 +27,7 @@ configure-options = --prefix=${options:prefix}
[urls]
gnu = ${urls:source}
-source = ftp://python.infinidat.com/python/sources
+source = file://${buildout:directory}/.download_cache
[gnu]
name = ${:_buildout_section_name_} Change the sources list accordingly:
And download the sources before building: grep -o 'http.*' sources | xargs wget --directory-prefix .download_cache --no-clobber --no-verbose I have a fork of this project at work where FTP is blocked by our firewall, and this is the workaround I use. The sources list I provide above tries to use primary sources, but where I couldn't find any uses a university mirror site. Word of warning: some of the links aren't HTTPS and I haven't verified checksums or anything. |
Furthermore if you're building using Python 3, you need to patch
This patch makes it work on Python 3
See changes in the tarfile module:
https://docs.python.org/2/library/tarfile.html#tarfile.TarFile.add
https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.add
diff --git a/pack/__init__.py b/pack/__init__.py
index bbfa6ae..483fb24 100644
--- a/pack/__init__.py
+++ b/pack/__init__.py
@@ -64,7 +64,7 @@ class Recipe(object):
def _write_archive(self):
import tarfile
archive = tarfile.open(name=self.destination_file, mode='w:gz')
- archive.add(name=self.source, arcname='python', exclude=self._tarfile_exclude)
+ archive.add(name=self.source, arcname='python', filter=self._tarfile_filter)
def _build_include_list(self):
self._include_list = [path.strip() for path in self._options.get("include_list", '').splitlines()]
@@ -74,17 +74,18 @@ class Recipe(object):
if '' in self._exclude_list:
self._exclude_list.remove('')
- def _tarfile_exclude(self, path):
+ def _tarfile_filter(self, tarinfo):
+ path = tarinfo.path
if path in self._exclude_list:
- return True
+ return None
if path in self._include_list:
- return False
+ return tarinfo
for basepath in self._include_list:
if path in basepath:
- return False
+ return tarinfo
if basepath in path:
- return False
- return True
+ return tarinfo
+ return None
def update(self):
pass |
See Infinidat/infi.recipe.python#3 for a cross-compatible version of the patch for infi.recipe.python. |
Using Python 3.7.4 on OS X with the python3.7 branch of this project, running bin/build, I get the following error:
It looks like zlib-1.2.8.tar.gz is available. Is this a matter of the resources needed for the branch just not being available because the branch isn't finished?
The text was updated successfully, but these errors were encountered: