How to install my packages to alternative directory (ex. /opt/myapp) instead of the usual third party python path ??
-
stackoverflow.com/questions/273192/… -- does this discussion answer your question?vpit3833– vpit38332013-11-17 23:55:07 +00:00Commented Nov 17, 2013 at 23:55
-
thanks for your time , the answer is "no" , I expect that the script should create this directories and copy the modules into it.tabebqena– tabebqena2013-11-18 00:11:39 +00:00Commented Nov 18, 2013 at 0:11
-
Please read the documentation of package_dir. package_dir is not the destination. Package_dir is to tell distutils where your packages are in your source tree.Kenji Noguchi– Kenji Noguchi2013-11-18 00:44:50 +00:00Commented Nov 18, 2013 at 0:44
-
thanks for notification , I read it quickly , so I wrongly understand it , what is the option for distination directory ??tabebqena– tabebqena2013-11-18 02:03:20 +00:00Commented Nov 18, 2013 at 2:03
Add a comment
|
1 Answer
I have found this way which is accepted for me :
1/ Make setup configuration file .
2/ Add the following to the configuration file :
[install]
install-base= # custom path
install-purelib= # custom path
install-platlib= # add custom path
install-scripts= # add custom path
install-data= # add custom path
install-headers= #add custom path
this is better than force the user to specify them in the command line, in addition he can override this conf. from the command line . It works fine for me .