osdir.com


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

"How to package additional files under site-packages "


Hello,

I have a setup.py that has this:
package_data = { 'tests': [ '*.png', '*.jpg']}
data_files = [ ('', ['./README.md']),
               ('', ['./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 README.md, CHANGES and LICENSE files under python-install path/Lib
e.g:
    /Library/Frameworks/Python.framework/Versions/3.7/CHANGES
    /Library/Frameworks/Python.framework/Versions/3.7/LICENSE
    /Library/Frameworks/Python.framework/Versions/3.7/README.md

And my package is installed under :
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ibm_db.cpython-37m-darwin.so

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

Thanks in advance!
Saba.

--------------------------------------------------------------------
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 rocketsoftware.com<mailto:skauser at rocketsoftware.com>
---------------------------------------------------------------------


================================
Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/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.