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

pip install tries to write LICENSE file to /usr/local (on MacOS X 10.12.5) #161

Open
chadnetzer opened this issue Jun 19, 2017 · 2 comments

Comments

@chadnetzer
Copy link

pip3 install git+https://github.com/vbuterin/pybitcointools
...
running install_data
copying LICENSE -> /usr/local/
error: could not create '/usr/local/LICENSE': Permission denied
@hegjon
Copy link

hegjon commented Sep 6, 2017

I am running into this issue when packaging this library for Fedora.

I ended up with using this patch:

diff --git setup.py setup.py
index e01a9bf..757564b 100644
--- setup.py
+++ setup.py
@@ -13,5 +13,4 @@ setup(name='bitcoin',
       packages=['bitcoin'],
       scripts=['pybtctool'],
       include_package_data=True,
-      data_files=[("", ["LICENSE"]), ("bitcoin", ["bitcoin/english.txt"])],
       )

@bignose-debian
Copy link

Yes, I have a similar problem packaging this for Debian.

The ‘data_files’ declaration does not seem to help anything, because:

  • Both those files are included in the source distribution (by being explicitly specified in the manifest).
  • The ‘LICENSE’ file is not needed in the binary distribution.
  • The ‘english.txt’ file is already included in the binary distribution (because it is collected as part of the ‘bitcoin’ package).

So I have applied essentially the same patch as @hegjon wrote.

Please remove that declaration from the Distutils configuration.

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

3 participants