Skip to content

Commit 6fbbb21

Browse files
authored
Pack LICENSE in a different way (#74)
We already did lots of experiments in a downstream repo to test this.
1 parent 80eac92 commit 6fbbb21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@
6767
'Operating System :: OS Independent',
6868
],
6969
packages=find_packages(exclude=["tests"]),
70-
data_files=[('', ['LICENSE'])],
70+
package_data={'': ['LICENSE']}, # Do not use data_files=[...],
71+
# which would cause the LICENSE being copied to /usr/local,
72+
# and tend to fail because of insufficient permission.
73+
# See https://stackoverflow.com/a/14211600/728675 for more detail
7174
install_requires=[
7275
'requests>=2.0.0,<3',
7376
'PyJWT[crypto]>=1.0.0,<2',

0 commit comments

Comments
 (0)