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

Installing Wand causes wand's README.rst to be installed to project directory #336

Closed
schinckel opened this issue Jun 6, 2017 · 3 comments
Milestone

Comments

@schinckel
Copy link

It's a misconfiguration of something in setup.py, or maybe manifest.

Uninstalling Wand removes the errant README.rst

This was from Wand 0.4.4

@emcconville
Copy link
Owner

This would be caused by the setup.py.

data_files=[('', ['README.rst'])],

@dekimsey
Copy link

dekimsey commented Apr 27, 2018

Adding to this, I'm actually unable to install Wand correctly using pip3 (homebrew install python3).

And while yes, I could simply change the perms on /usr/local (root:wheel) to let me write, a pip package should certainly not be writing there.

Command output:

$ pip3 install -I wand -v
Created temporary directory: /private/var/folders/rn/9821bpds6c3_4t2_x7kmd54d2n5085/T/pip-ephem-wheel-cache-96d9x0dm
Created temporary directory: /private/var/folders/rn/9821bpds6c3_4t2_x7kmd54d2n5085/T/pip-install-2n_k75j9
Collecting wand
  1 location(s) to search for versions of wand:
  * https://pypi.org/simple/wand/
  Getting page https://pypi.org/simple/wand/
  Looking up "https://pypi.org/simple/wand/" in the cache
  Current age based on date: 219
  Freshness lifetime from max-age: 600
  Freshness lifetime from request max-age: 600
  The response is "fresh", returning cached response
  600 > 219
  Analyzing links from page https://pypi.org/simple/wand/
    Found link https://files.pythonhosted.org/packages/1a/c7/e6e05f247318e2e8ac7e0901e3f2ed6c0a9ebd337c7037949740efe51b65/Wand-0.1.0.tar.gz#sha256=290b1ff7ae5b0346f6b51d25fdf0be5c1977f66ccdb9d8717a9030831fed42a5 (from https://pypi.org/simple/wand/), version: 0.1.0
    Found link https://files.pythonhosted.org/packages/7a/ed/5a26a289c7ac617761075d030173b8b67e4669d0f36dc540117e2a3050a1/Wand-0.1.1.tar.gz#sha256=cd253c01d98c3ee6d5833fd4f42f0f8ec3fb38a9bfd2058fb1e192deb04da096 (from https://pypi.org/simple/wand/), version: 0.1.1
    Found link https://files.pythonhosted.org/packages/35/27/23c8c718ff25a7d5807950c68d46833eb4a6dab7d2c7e0f2f229f354f108/Wand-0.1.2.tar.gz#sha256=6ca53a2194439744b8245dfd9516eca3cefdb286ad4d48a82251e244be21d9d0 (from https://pypi.org/simple/wand/), version: 0.1.2
    Found link https://files.pythonhosted.org/packages/50/df/be01ef9f237d7eaf1f41cb7b6c073d8b788d97b3d072d086cd804941a481/Wand-0.1.3.tar.gz#sha256=ab17859d7336cb7d108b7d7609260f6f4578f23e62f61858004ce2e86b284e3a (from https://pypi.org/simple/wand/), version: 0.1.3
    Found link https://files.pythonhosted.org/packages/68/f9/2a5b4c93d6fecd540047059de978313998183452d7bef8f10ed4fdc8bbd1/Wand-0.1.4.tar.gz#sha256=66aa900af3686ee23f5b7203adee2e88bed90f553a74d460798232565d4c8d47 (from https://pypi.org/simple/wand/), version: 0.1.4
    Found link https://files.pythonhosted.org/packages/b0/7a/6d7b841602f3fccd563579fbb30495ab15e353ac04448224aa5429df2bd9/Wand-0.1.5.tar.gz#sha256=fba6f87b042f055ca23b1ccc5d78f4a584889c0792c20e555bae2896a9db78ef (from https://pypi.org/simple/wand/), version: 0.1.5
    Found link https://files.pythonhosted.org/packages/80/d1/5f8e44021bf8b459a9f643553df3b98dd40445805783c20f494144d318e1/Wand-0.1.6.tar.gz#sha256=5a25316b12ee92a7796d0deece864a88b39b2eaadb1e9a51ae4a96145b0e398f (from https://pypi.org/simple/wand/), version: 0.1.6
    Found link https://files.pythonhosted.org/packages/22/52/e83f65acb3f575831c7638e41e27920aebb6ae0a8d5e1dbce9f6a477dc40/Wand-0.1.7.tar.gz#sha256=ecfaa610fd236bda1b6eb1995cde837a0e4e913f594c357b7017946c70884186 (from https://pypi.org/simple/wand/), version: 0.1.7
    Found link https://files.pythonhosted.org/packages/9a/28/63c1a4d9326a6ab96946e1b162709e812a2fadc582a1d1e5b11b67132a40/Wand-0.1.8.tar.gz#sha256=9666237d68e2c58d59a9b5986e1a8a6171a0a4ce28deb09d0f42c782d92f5a7f (from https://pypi.org/simple/wand/), version: 0.1.8
    Found link https://files.pythonhosted.org/packages/62/9c/d6e9ff37ffd3fa8c70050c48f7353d7b443e787e50409c0c85a5b018d541/Wand-0.1.9.tar.gz#sha256=fbf53924f6b0db426c629511d30a4e2d30637dc4c0784b8d740fc50a595efc81 (from https://pypi.org/simple/wand/), version: 0.1.9
    Found link https://files.pythonhosted.org/packages/97/02/84f98d4e6cdd65ffb259e37889e75da69ad538216d4394bb384f07c55f32/Wand-0.1.10.tar.gz#sha256=816af33bc48b3cdd7ee84c99e64118f06db731156750b817ed08689901d6499b (from https://pypi.org/simple/wand/), version: 0.1.10
    Found link https://files.pythonhosted.org/packages/b6/3a/b5020edb7715e871a3762dc727e16ff144dfcf0942ed21add3e0e302630e/Wand-0.2.1.tar.gz#sha256=202ffe8decfda4f7f29b4ac0043755cfb7bc23ad124ab023db1295ea9ffebdf0 (from https://pypi.org/simple/wand/), version: 0.2.1
    Found link https://files.pythonhosted.org/packages/89/09/c54dc0db0e9968e73a27f5a1e6010665db840dff8149533de3f7227d61b4/Wand-0.2.2.tar.gz#sha256=73334ac7beab70ceee525cdb689f159d351e25dfe3b1402ef4df489b0b061ae1 (from https://pypi.org/simple/wand/), version: 0.2.2
    Found link https://files.pythonhosted.org/packages/b1/56/675862caf872dcf40e10eff6e4e382b22ef2920f85ed01275d8d05097d21/Wand-0.2.3.tar.gz#sha256=7b5ac6e751ffe5346ef5c05a42f99ce671d9a229a2e466eed615b08857b2e738 (from https://pypi.org/simple/wand/), version: 0.2.3
    Found link https://files.pythonhosted.org/packages/80/16/e65695f35a110d434f3f73181755ca3bd395eb8a0e927ad0ff1538f7ebb0/Wand-0.2.4.tar.gz#sha256=e1a6804997db7f4b539edbf122eaf5426529c9ae46e2482b106804db246c165c (from https://pypi.org/simple/wand/), version: 0.2.4
    Found link https://files.pythonhosted.org/packages/b5/49/bdebca23572abb603ad26492a2f6c92abcdbb8dcdd70eab13e64e6e37717/Wand-0.3.0.tar.gz#sha256=312ba3cc8035d2dfb2e306ace5ecfcc3757292c9c3e75890670b0bdfef30b178 (from https://pypi.org/simple/wand/), version: 0.3.0
    Found link https://files.pythonhosted.org/packages/2d/7c/2daec2a74f78d0fde2c2d6e01bb57dcc1d8285f5f601071367689207f62d/Wand-0.3.1.tar.gz#sha256=ffc9a551a0ebcdb14f3d038d1bb7d7428c802defacb6e51f5bda2144afed3aad (from https://pypi.org/simple/wand/), version: 0.3.1
    Found link https://files.pythonhosted.org/packages/6b/4a/7ba0c3de17e961268206e0d2066e15b096a68d9173d527e5df3c13fe67a2/Wand-0.3.2.tar.gz#sha256=62c30555eb85da338fa72baa887e8265c0348b8c46fed9398fc737b553cb675c (from https://pypi.org/simple/wand/), version: 0.3.2
    Found link https://files.pythonhosted.org/packages/9d/84/241bf803573f6d138d2ea3427ed4dcdc5fc3c631066155ed6cccc52ee33c/Wand-0.3.3.tar.gz#sha256=8c20f8405996dd0987ec681f5df92afaeaac95b0257230ad6f95e3983bd71d10 (from https://pypi.org/simple/wand/), version: 0.3.3
    Found link https://files.pythonhosted.org/packages/07/d3/9676290d9544586e6a48cbf008e87fe529d0ea14318357cddd468b760a0b/Wand-0.3.4.tar.gz#sha256=292ed848d60e219c304d5a2a8390f2bfd69f2aaba710cb9f17588ac79f5fc3cb (from https://pypi.org/simple/wand/), version: 0.3.4
    Found link https://files.pythonhosted.org/packages/7c/03/1f6bfb2cc48c380efbabe786318ee867182b7d04a5fbe3b87978f8836e8f/Wand-0.3.5.tar.gz#sha256=31e2186ce8d1da0d2ea84d1428fc4d441c2e9d0e25156cc746b35b781026bcff (from https://pypi.org/simple/wand/), version: 0.3.5
    Found link https://files.pythonhosted.org/packages/3d/28/ae0c50696078441668d370c07b29619bb6db8f7ed4e7e46ef308f1aa2286/Wand-0.3.6-py34-none-any.whl#sha256=0e8f22e42f5be58250bd90992ae8167ea1c7849b20294c4ed87d942404f18a76 (from https://pypi.org/simple/wand/), version: 0.3.6
    Found link https://files.pythonhosted.org/packages/74/10/e5c1cb244149cd6f055ecfc474ad2e068e48abb86fb2f4fa4a4a0d790f7b/Wand-0.3.6.tar.gz#sha256=65689a2a5d237ba0e9418afb9b27e7c9e29e055f92dadf6c0b9192cc12978677 (from https://pypi.org/simple/wand/), version: 0.3.6
    Found link https://files.pythonhosted.org/packages/82/4e/e0ea24978dc0f9fa19dd8e5c65539e201ab2477ead4890d3c3cb5d25bf33/Wand-0.3.7.tar.gz#sha256=373666e45b59d8288f63451d00e044fe3ca87e81dc1a208c26d8d5cd9150441e (from https://pypi.org/simple/wand/), version: 0.3.7
    Found link https://files.pythonhosted.org/packages/2c/fa/523a3736b39a8845ac01195b986c4f26bc635ee898c7e349cdf4afb700e1/Wand-0.3.8.tar.gz#sha256=5bc4fe0a2b0aa93af16430e979ce6f977ac8d0c82eb8e00d4d9a537f4ef06a9a (from https://pypi.org/simple/wand/), version: 0.3.8
    Found link https://files.pythonhosted.org/packages/e8/7d/321d21be1616243c280c093064242360c2bc9af5cd35b5de4e4adc1c6fab/Wand-0.3.9.tar.gz#sha256=ab44a4280688af525f9bc10af8b5f7d67e0d8244e76e4008e70337ec45fc4cb7 (from https://pypi.org/simple/wand/), version: 0.3.9
    Found link https://files.pythonhosted.org/packages/40/88/4176762a1a3adc50ef5422b1feaf683016d9bd0da0ee3ac8c2029be55aba/Wand-0.4.0.tar.gz#sha256=3ef8cbadb122808c123b33d34a9cc833a91eebb700ebea1d5d610fa807f55a89 (from https://pypi.org/simple/wand/), version: 0.4.0
    Found link https://files.pythonhosted.org/packages/61/e3/f3150a39142f6686a457250cdbb71297482710c5d132f33a0f85798b68e1/Wand-0.4.1.tar.gz#sha256=a152891be252fe7751d8029ddfb28033e4553ae9602b48b6a9a8985788ab24e0 (from https://pypi.org/simple/wand/), version: 0.4.1
    Found link https://files.pythonhosted.org/packages/60/14/5bb6919170f796bcc0b3b42c41a8679394e397468f22e5d89159bcd39197/Wand-0.4.2.tar.gz#sha256=a0ded99a9824ddd82617a4b449164e2c5c93853aaff96f9e0bab8b405d62ca7c (from https://pypi.org/simple/wand/), version: 0.4.2
    Found link https://files.pythonhosted.org/packages/bd/b2/a2276b912d641a196af3713772899b4a7af5114295ad0ebc44039014b2cc/Wand-0.4.3.tar.gz#sha256=576133476b1970313b4ab69460051dba2563ac125143bc109d6c796f77d9bd57 (from https://pypi.org/simple/wand/), version: 0.4.3
    Skipping link https://files.pythonhosted.org/packages/6d/1d/7ce2c8b8febb2ff8f8217914940a5dcc1181f5c0ff1e3b0fbd37c60338ee/Wand-0.4.4-py2-none-any.whl#sha256=fb50d0ad4cad995f0b59b13f76bced22682ab80b4299084a2c3c535b225850c9 (from https://pypi.org/simple/wand/); it is not compatible with this Python
    Found link https://files.pythonhosted.org/packages/c5/0e/4c7846ffac7a478578ff77c93d6aff3da2c181972d9447c74bfe1e87ac06/Wand-0.4.4.tar.gz#sha256=28e0454c9d16d69c5d5034918d96320d8f9f1377b4fdaf4944eec2f938c74704 (from https://pypi.org/simple/wand/), version: 0.4.4
  Using version 0.4.4 (newest of versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4)
  Using cached wheel link: file:///Users/dkimsey/Library/Caches/pip/wheels/69/27/bf/e3a7915d1ac83745a9486cb50f1cb0d676cc8642ae711193a6/Wand-0.4.4-cp36-none-any.whl
Installing collected packages: wand

Could not install packages due to an EnvironmentError.
Consider using the `--user` option or check the permissions.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 335, in run
    use_user_site=options.use_user_site,
  File "/usr/local/lib/python3.6/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/usr/local/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 748, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/usr/local/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 961, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/usr/local/lib/python3.6/site-packages/pip/_internal/wheel.py", line 346, in move_wheel_files
    clobber(source, dest, False, fixer=fixer, filter=filter)
  File "/usr/local/lib/python3.6/site-packages/pip/_internal/wheel.py", line 292, in clobber
    shutil.copyfile(srcfile, destfile)
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/local/README.rst'
Cleaning up...

@emcconville emcconville added this to the 0.5.0 milestone Nov 13, 2018
emcconville added a commit that referenced this issue Nov 14, 2018
@emcconville
Copy link
Owner

README.rst has been removed from data_files list. Thanks, and sorry for the delay.

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