Can't get ANY data files included!!! Please help!
I added an include line in MANIFEST.in but still cannot get *any* data files included!! I made a toy example to show my problem... ============================================= Here are my package files: ============================================= setup.py MANIFEST.in foo.py somedata ============================================= Here is contents of setup.py: ============================================= from distutils.core import setup setup(name = "foo", version = "1.0", data_files = [ ("data", ["somedata"]) ], packages = [""]) ============================================= Here is MANIFEST.in: ============================================= include "somedata" ============================================= ============================================= Here is what happens when I try to do "python setup.py sdist": ============================================= % python setup.py sdist running sdist ...etc. reading manifest template 'MANIFEST.in' warning: no files found matching '"somedata"' ...etc. ============================================= I tried *absolute* paths in MANIFEST.in and data_files. I tried to move data files to different places. I tried using wild cards. NOTHING seems to make distutils SEE my data files?!?!? Chris -- _______________________________________ Christian Seberino, Ph.D. SPAWAR Systems Center San Diego Code 2872 49258 Mills Street, Room 158 San Diego, CA 92152-5385 U.S.A. Phone: (619) 553-9973 Fax : (619) 553-6521 Email: seberino@spawar.navy.mil _______________________________________
* seberino@spawar.navy.mil
setup(name = "foo", version = "1.0", data_files = [ ("data", ["somedata"]) ], packages = [""]) [...] I tried *absolute* paths in MANIFEST.in and data_files. I tried to move data files to different places. I tried using wild cards.
NOTHING seems to make distutils SEE my data files?!?!?
I guess you should list files and not dirs.
Are you sure "somedata" is a file ?
What i've done before to include everything inside a datadir is:
data_files = [("share/MyApp",map(lambda x: 'MyAppData/'+x, os.listdir("MyAppData")))], # include all MyAppData/ content
You could also use "['MyAppData/'+x for x in os.listdir("MyAppData")]"
there instead of that map call.
Best regards,
--
rnc
participants (2)
-
Ricardo Niederberger Cabral
-
seberinoï¼ spawar.navy.mil