[Distutils] newbie questions about installing files to desired directories...

seberino at spawar.navy.mil seberino at spawar.navy.mil
Sat Oct 11 03:02:58 EDT 2003

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.

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  ???

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!!?!?)



Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385

Phone: (619) 553-9973
Fax  : (619) 553-6521
Email: seberino at spawar.navy.mil

More information about the Distutils-SIG mailing list