How to install python package without copy everything into lib/site-packages?
Posted
by Victor Lin
on Stack Overflow
See other posts from Stack Overflow
or by Victor Lin
Published on 2010-04-20T04:57:24Z
Indexed on
2010/04/20
5:03 UTC
Read the original article
Hit count: 264
I want to develop a common python package, I got other packages depends on it. For example:
- packageA/
- packageB/
- packageC/
- commonPackage/
packageA, packageB and packageC can all be executed directly, but they are all depend on commonPackage. I want to install the commonPackage into lib/site-packages, but I don't want it copys the source code. Instead, I want it creates a commonPackage.pth in lib/site-packages with the path of where the commonPackage at. So that when I modify commonPackage or update it from SVN, I don't need to install it again. Here comes the problem, how can I write the setup.py or use the options of python setup.py install so that it would do what I want?
© Stack Overflow or respective owner