2

How to install my packages to alternative directory (ex. /opt/myapp) instead of the usual third party python path ??

4
  • stackoverflow.com/questions/273192/… -- does this discussion answer your question? Commented 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. Commented 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. Commented 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 ?? Commented Nov 18, 2013 at 2:03

1 Answer 1

3

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 .

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.