문제

For example, installing IPython on Linux (where setuptools is not installed) I've got IPython installed in site-packages\IPython.

Installing IPython on Windows (where IPython requires setuptools), after executing the same command

python setup.py install

I get IPython installed in site-packages\ipython-0.13.2-py2.7.egg\IPython

Is there a way to install the module "old way" i.e. into site-packages\IPython?

도움이 되었습니까?

해결책

I've discovered that

python setup.py install --old-and-unmanageable

does the job, but I am not sure it is a good way as --old-and-unmanageable is marked "Try not to use this!".

다른 팁

I don't know if it's applicable in your case, but the --root option also does this. For example, the Fedora packaging guidelines make use of this, since the versioning is managed externally by RPM. https://fedoraproject.org/wiki/Packaging:Python_Eggs

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top