diff --git a/setup.py b/setup.py index 06256333..0c26e5da 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,10 @@ 'Operating System :: OS Independent', ], packages=find_packages(exclude=["tests"]), - data_files=[('', ['LICENSE'])], + package_data={'': ['LICENSE']}, # Do not use data_files=[...], + # which would cause the LICENSE being copied to /usr/local, + # and tend to fail because of insufficient permission. + # See https://stackoverflow.com/a/14211600/728675 for more detail install_requires=[ 'requests>=2.0.0,<3', 'PyJWT[crypto]>=1.0.0,<2',