-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
License is installed to /usr #120
Comments
Thanks for pointing this out, would you know what is the correct way to include extra files like |
I am getting this as well. The "data_files" property is for files you want to put under the install prefix (/usr ex) like icons, desktop shortcuts, etc. For this LICENSE file and other files that should be installed in the package dir it should use "package_data" property and set the include_package_data=True flag. Lots of related discussion here: Example: setup(
name='myapp',
packages=find_packages(),
package_data={
'myapp': ['data/*.txt'],
},
include_package_data=True,
zip_safe=False,
install_requires=['distribute'],
) package_data is specifically for package releases, which I think is what we want here. More details: |
fixed pip install error trying to install LICENSE to /usr #120
I released a new version 1.12.3, thank you all |
Commit dadd5a4, suggested by #57, added
LICENSE
todata_files
. It appears that this was intended to add the license to the source distribution, however it also causes it to be installed in/usr
whenpython setup.py install
is run. This is incorrect as/usr
should only contain the subdirectories specified in the Filesystem Hierarchy Standard, and no files.The text was updated successfully, but these errors were encountered: