pybitcointools icon indicating copy to clipboard operation
pybitcointools copied to clipboard

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

Open chadnetzer opened this issue 8 years ago • 2 comments

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

chadnetzer avatar Jun 19 '17 00:06 chadnetzer

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"])],
       )

hegjon avatar Sep 06 '17 13:09 hegjon

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.

bignose-debian avatar Sep 09 '17 21:09 bignose-debian