distribute

Easy_install and pip broke: pkg_resources.DistributionNotFound: distribute==0.6.36

不打扰是莪最后的温柔 提交于 2019-11-28 03:27:41
I was tried to upgrade pip with pip install --upgrade pip on OSX and pip and easy_install both dont work. When running pip Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2881, in <module> parse_requirements(__requires__), Environment() File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2

What is the best way to share/distribute Excel macro? [closed]

こ雲淡風輕ζ 提交于 2019-11-28 00:44:50
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I wrote the macro in Excel and want to distribute it to the users. Once opened I want the macro to add itself as a toolbar and then to be always visible whenever the Excel is opened. So the macro can be conveniently accessed used from all workbooks. 回答1: IMHO, the easiest way

Setuptools unable to use link from dependency_links

≯℡__Kan透↙ 提交于 2019-11-27 23:45:57
I've been trying to install a package with the following setup configured: setup( packages=find_packages(), include_package_data=True, install_requires=[ 'Django==1.5.1', 'xhtml2pdf', ], dependency_links=[ 'https://github.com/chrisglass/xhtml2pdf/zipball/28d12fcaafc4c47b13f1f6f42c2bfb73f90cc947#egg=xhtml2pdf', ], ) However it installs the XHTML2PDF package from PyPi, instead of using the specified link. According to the output (I ran the install using pip install -vvv package.tar.gz ), it could either not parse the version from the link (at // 1 in code), or I've not specified the correct

Why does “python setup.py sdist” create unwanted “PROJECT-egg.info” in project root directory?

*爱你&永不变心* 提交于 2019-11-27 14:17:53
问题 When I run python setup.py sdist it creates an sdist in my ./dist directory. This includes a "PROJECT-egg.info" file in the zip inside my "dist" folder, which I don't use, but it doesn't hurt me, so I just ignore it. My question is why does it also create a "PROJECT-egg.info" folder in my project root directory? Can I make it stop creating this? If not, can I just delete it immediately after creating the sdist? I'm using the 'setup' function imported from setuptools. WindowsXP, Python2.7,

Setuptools unable to use link from dependency_links

你。 提交于 2019-11-27 04:41:54
问题 I've been trying to install a package with the following setup configured: setup( packages=find_packages(), include_package_data=True, install_requires=[ 'Django==1.5.1', 'xhtml2pdf', ], dependency_links=[ 'https://github.com/chrisglass/xhtml2pdf/zipball/28d12fcaafc4c47b13f1f6f42c2bfb73f90cc947#egg=xhtml2pdf', ], ) However it installs the XHTML2PDF package from PyPi, instead of using the specified link. According to the output (I ran the install using pip install -vvv package.tar.gz ), it

What does “error: option --single-version-externally-managed not recognized” indicate?

余生长醉 提交于 2019-11-27 03:36:52
I seem to have suddenly started encounter the error error: option --single-version-externally-managed not recognized when pip install ing varions packages (including PyObjC and astropy ). I've never seen this error before, but it's now also showing up on travis-ci builds for which nothing has changed. Does this error indicate an out of date distribute? Or some incorrectly specified option in setup.py ? Or something else entirely? Kelketek New Update: Install the latest version of setuptools . If you still get the error, install wheel as well. pip install -U setuptools pip install -U wheel

How do I use data in package_data from source code?

狂风中的少年 提交于 2019-11-27 00:22:50
问题 In setup.py, I have specified package_data like this: packages=['hermes'], package_dir={'hermes': 'hermes'}, package_data={'hermes': ['templates/*.tpl']}, And my directory structure is roughly hermes/ | | docs/ | ... | hermes/ | | __init__.py | code.py | templates | | python.tpl | | README | setup.py The problem is that I need to use files from the templates directory in my source code so I can write out python code (this project is a parser generator). I can't seem to figure out how to

Easy_install and pip broke: pkg_resources.DistributionNotFound: distribute==0.6.36

我是研究僧i 提交于 2019-11-27 00:03:39
问题 I was tried to upgrade pip with pip install --upgrade pip on OSX and pip and easy_install both dont work. When running pip Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2881, in <module> parse_requirements(__requires__), Environment() File "/usr/local/Cellar

What does “error: option --single-version-externally-managed not recognized” indicate?

房东的猫 提交于 2019-11-26 09:28:48
问题 I seem to have suddenly started encounter the error error: option --single-version-externally-managed not recognized when pip install ing varions packages (including PyObjC and astropy ). I\'ve never seen this error before, but it\'s now also showing up on travis-ci builds for which nothing has changed. Does this error indicate an out of date distribute? Or some incorrectly specified option in setup.py ? Or something else entirely? 回答1: New Update: Install the latest version of setuptools .

How to include package data with setuptools/distribute?

房东的猫 提交于 2019-11-26 02:06:15
问题 When using setuptools/distribute, I can not get the installer to pull in any package_data files. Everything I\'ve read says that the following is the correct way to do it. Can someone please advise? setup( name=\'myapp\', packages=find_packages(), package_data={ \'myapp\': [\'data/*.txt\'], }, include_package_data=True, zip_safe=False, install_requires=[\'distribute\'], ) where myapp/data/ is the location of the data files. 回答1: I realize that this is an old question, but for people finding