Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python sdist recursive-include folder, where is it once installed?

I have this in my MANIFEST.in

recursive-include tables *.csv

and I can see the folder included in the created .tar.gz

/mypackage-0.0.1
    /mypackage
    /mypackage.egg-info
    /tables

but I can't find my folder once I install the package with:

pip install mypackage-0.0.1.tar.gz

or

easy_install mypackage-0.0.1.tar.gz

Any clue?

like image 626
neurino Avatar asked Jun 17 '26 08:06

neurino


1 Answers

With MANIFEST.in, you specify the files to embedd in the archive, not the way they will be installed.

To tell python/distutils where you want to install your files, add in your setup.py fill the parameter data_files in the setup() method. This way, you will be able to specify where to install those additional files.

like image 99
Cédric Julien Avatar answered Jun 18 '26 21:06

Cédric Julien



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!