By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

distutils install dir

P: n/a

What is the best way to get the target install dir from distutils when

python install

is run.

Eg, on a standard python install to /usr/local I want


and on a standard win32 python installation I want

I also want to handle the case when an alternate prefix is installed.

To to ask the question another way. I want to add SomeFile.pth to the
install dir. For various reasons, extra_path is not a good choice for
me. I just want to copy a file SomeFile.pth to the site-packages dir.
My workaround is to treat SomeFile.pth as a data_file, and add it to
the site-packages dir (stored in sitep) with

data_files = [ (sitep, 'SomeFile.pth') ]
ext_modules = ext_modules,

John Hunter

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.