shotgunsoftware / python-api

A Python-based library for accessing Flow Production Tracking API.
https://developer.shotgridsoftware.com/python-api
Other
306 stars 198 forks source link

error found when install shotgun-api3 by pip #218

Open yanghg-basefx opened 4 years ago

yanghg-basefx commented 4 years ago

In our company, we have our own pypi source, so I build shotgun-api3 package first.

tar -xvf python-api-3.2.1.tar.gz
cd python-api-3.2.1
python setup.py sdist

Then I copy shotgun_api3-3.2.1.tar.gz to our pypi source directory.

cp dist/shotgun_api3-3.2.1.tar.gz pypi/source/shotgun_api3/

Finally, I could install shotgun-api3 by pip. But it raise an error.

pip install shotgun-api3
FileNotFoundError: [Errno 2] No such file or directory: 'LICENSE'

I think the reason is you didn't add LICENSE file to package_data but read it in setup.py.

EDIT

If I use git clone to download the source package, there is no problem. But if I download the released package, it can't work. So the problem comes from include_package_data, because the released package doesn't have .git folder.