Skip to content
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

error found when install shotgun-api3 by pip #218

Open
yanghg-basefx opened this issue Nov 18, 2019 · 0 comments
Open

error found when install shotgun-api3 by pip #218

yanghg-basefx opened this issue Nov 18, 2019 · 0 comments

Comments

@yanghg-basefx
Copy link

yanghg-basefx commented Nov 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant