Created
November 23, 2012 16:05
-
-
Save pnasrat/4136264 to your computer and use it in GitHub Desktop.
Reproducer for distribute/numpy issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/pnasrat/Development/virtualenv/ve/bin/python3.3 -c " | |
__file__ = '/Users/pnasrat/Development/virtualenv/ve/build/numpy/setup.py' | |
from setuptools.command import egg_info | |
import pkg_resources | |
import os | |
def replacement_run(self): | |
self.mkpath(self.egg_info) | |
installer = self.distribution.fetch_build_egg | |
for ep in pkg_resources.iter_entry_points('egg_info.writers'): | |
# require=False is the change we're making: | |
writer = ep.load(require=False) | |
if writer: | |
writer(self, ep.name, os.path.join(self.egg_info,ep.name)) | |
self.find_sources() | |
egg_info.egg_info.run = replacement_run | |
exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec')) | |
" egg_info --egg-base pip-egg-info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment