Pip Tries To Install Package In The Wrong Location
I have just created a Python package and uploaded it to PyPi (goosempl). Installing the package locally works: $ python3 setup.py install (It installs in usr/local/lib/python3.6/s
Solution 1:
With the help of @NilsWerner:
The problem was in data_files
. I have changed this with package_data
(which has a slightly different syntax):
package_data = {'goosempl/stylelib':[
'goosempl/stylelib/goose.mplstyle'
]},
This results in the desired behavior.
Following the comments, one could also include these files in MANIFEST.in
.
Post a Comment for "Pip Tries To Install Package In The Wrong Location"