I'm trying to package up pylint 1.0 for our local installation. For the most part, the simple tar archive seems ideal, however the path components in the generated tar file have an unwanted prefix. Our Python installation is in /opt/TWWfsw/python27, so ./opt/TWWfsw/python27 appears as a prefix to all components of the tar file: % tar tfz dist/pylint-1.0.0.share.tar.gz | head ./ ./opt/ ./opt/TWWfsw/ ./opt/TWWfsw/python27/ ./opt/TWWfsw/python27/lib/ ./opt/TWWfsw/python27/lib/python2.7/ ./opt/TWWfsw/python27/lib/python2.7/site-packages/ ./opt/TWWfsw/python27/lib/python2.7/site-packages/pylint-1.0.0-py2.7.egg-info/ ./opt/TWWfsw/python27/lib/python2.7/site-packages/pylint-1.0.0-py2.7.egg-info/dependency_links.txt ./opt/TWWfsw/python27/lib/python2.7/site-packages/pylint-1.0.0-py2.7.egg-info/top_level.txt I would like that to be: % tar tfz dist/pylint-1.0.0.share.tar.gz | head ./ ./lib/ ./lib/python2.7/ ./lib/python2.7/site-packages/ ./lib/python2.7/site-packages/pylint-1.0.0-py2.7.egg-info/ ./lib/python2.7/site-packages/pylint-1.0.0-py2.7.egg-info/dependency_links.txt ./lib/python2.7/site-packages/pylint-1.0.0-py2.7.egg-info/top_level.txt How do I manage that? The bdist command doesn't accept a --prefix arg. Alternatively, I'd like the install command to work properly. It does the right thing path-wise, but only installs lib, not bin: % ls -l /var/tmp/pylint-1.0/ total 4 drwxrwxr-x 3 skipm snake 4096 Aug 6 09:44 lib Thx, Skip
участники (2)
-
Skip Montanaro
-
Sylvain Thénault