使用this setup.py(尚未提交到this project的根目录)Python2.7,pip wheel .几乎需要20分钟$:~/projects/cfgov-refresh$ time pip wheel .
Processing /Users/karchnerr/projects/cfgov-refresh
Building wheels for collected packages: cfgov
Running setup.py bdist_wheel for cfgov ... done
Stored in directory: /Users/karchnerr/projects/cfgov-refresh
Successfully built cfgov
real 19m50.061s
user 0m29.641s
sys 1m21.651s
而setup.py bdist_wheel只需几秒钟。在
^{pr2}$
你知道是什么造成了这么大的差异吗?有什么事我应该改变一下吗?在
使用moreutils的ts命令,我可以看到pip甚至在开始处理之前已经花费了大量的时间设置.py在[2017-01-17 15:41:36] Processing /Users/karchnerr/projects/cfgov-refresh
[2017-01-17 15:54:42] Running setup.py (path:/private/var/folders/_f/3lrtcs492pnbf6zcql9t0n380000gp/T/pip-p6TG9c- build/setup.py) egg_info for package from file:///Users/karchnerr/projects/cfgov-refresh