-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
P.J. Eby ha scritto:
The -a in -maxd means that you must have either a source distribution (e.g. an sdist .tgz, svn: link, etc.) or an .egg. It cannot do .egg-info at the moment (although when it grows PEP 376 support in 0.7 it probably will).
Is it .egg-info or .egg-link ?
First off, there really isn't any sane meaning of 'develop' in the context of a -maxd tarball. A -maxd tarball needs .egg files or directories, or else you should just use pip to build a bundle or whatever it's called in pip.
pip bundles only contain source distributions. So, it only solve the "I don't have network access" problem, but not the "I can not compile extension modules" problem.
Looking at setuptools source code, I think I have solved the problem.
The easy_install command when calling the `package_index.fetch_distribution` function, will set the `develop_ok` parameter to False, when `always_copy` option is True.
I patched setuptools to always set the parameter to True, and now doing: python setup.py develop -H none -amxd deps
do what I want.
System and development eggs will no more be skipped, thus causing a DistutilsError exception to be raised; instead the currently installed version will be used.
Since I always use `virtualenv --no-site-packages`, all non standard modules will be copied.
I will probably implement a custom "bundle" distutils command, that will do this, creating an "eggs bundle" archive (using the sdist --formats option).