vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.28k stars 856 forks source link

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

Open chadnetzer opened 7 years ago

chadnetzer commented 7 years ago
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 commented 6 years ago

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 commented 6 years ago

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

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

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

Please remove that declaration from the Distutils configuration.