[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"How to package additional files under site-packages "


I have a that has this:
package_data = { 'tests': [ '*.png', '*.jpg']}
data_files = [ ('', ['./']),
               ('', ['./CHANGES']),
               ('', ['./LICENSE']) ]

setup( name    = PACKAGE,
       version = VERSION,
       packages     = find_packages(),
       package_data = package_data,
       data_files   = data_files,
       include_package_data = True,

This setup is copying, CHANGES and LICENSE files under python-install path/Lib

And my package is installed under :

I want data_files to be copied under my package install path.
How do I achieve this?

Thanks in advance!

Saba Kauser
Db2 Connect development and support.

Rocket Software Development India Pvt Ltd
Karle Town Centre - SEZ,
HUB 1 building, 4th Floor (North West Wing),
100 ft. Kempapura road, adjacent to Nagawara lake,
Nagawara, Bangalore - 560 045
E: skauser at<mailto:skauser at>

Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support:
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences -
Privacy Policy -

This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.