You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setup.py limits setuptools in its install_requires to >=2.2,<8. This breaks the build of pex on Ubuntu 15.04 where we have setuptools 12.2. It'll break on Debian too after Jessie is released.
I added the following very simple patch, which so far seems to fix the problem (more testing ahead).
The only gotcha here is pkg_resources becoming a package. I have a branch that removes this requirement as well. I think the following is the only diff necessary:
diff --git a/pex/pex_builder.py b/pex/pex_builder.py
index aef19e6..8b9911d 100644
--- a/pex/pex_builder.py+++ b/pex/pex_builder.py@@ -300,7 +300,7 @@ class PEXBuilder(object):
raise RuntimeError('Failed to find setuptools while building pex!')
for fn, content_stream in DistributionHelper.walk_data(setuptools):
- if fn == 'pkg_resources.py' or fn.startswith('_markerlib'):+ if fn.startswith('pkg_resources') or fn.startswith('_markerlib'):
self._chroot.write(content_stream.read(), os.path.join(self.BOOTSTRAP_DIR, fn), 'resource')
wrote_setuptools = True
setup.py limits setuptools in its install_requires to >=2.2,<8. This breaks the build of pex on Ubuntu 15.04 where we have setuptools 12.2. It'll break on Debian too after Jessie is released.
I added the following very simple patch, which so far seems to fix the problem (more testing ahead).
The text was updated successfully, but these errors were encountered: