distutils: newbie questions about installing files to desired directories...

C

Christian Seberino

Please help with newbie problems installing files
into right directories.

My source code is in $HOME/hitv2/src directory.

In $HOME/hitv2/setup.py I tried package = ["src"]
and package_dir = {"" : "src"} at various times.

Q1:
How can I get files in src to be installed into
/usr/lib/python2.2/site-packages/hitv2 instead of
/usr/lib/python2.2/site-packages/src or /usr/src ???

Q2:
In setup.py I have something like this:
data_files = [ ("???/data", ["data/*"]) ]

What should "???" be equal to if I want these data files
to go into /usr/lib/python2.2/site-packages/hitv2/data ???

(If "???/data" = "data" then files go into /usr/data!!?!?)

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top