setuptools

Can Pip install dependencies not specified in setup.py at install time?

妖精的绣舞 提交于 2019-11-28 16:25:18
I'd like pip to install a dependency that I have on GitHub when the user issues the command to install the original software, also from source on GitHub. Neither of these packages are on PyPi (and never will be). The user issues the command: pip -e git+https://github.com/Lewisham/cvsanaly@develop#egg=cvsanaly This repo has a requirements.txt file, with another dependency on GitHub: -e git+https://github.com/Lewisham/repositoryhandler#egg=repositoryhandler What I'd like is a single command that a user can issue to install the original package, have pip find the requirements file, then install

Python packages and egg-info directories

被刻印的时光 ゝ 提交于 2019-11-28 15:54:45
问题 Can someone explain how egg-info directories are tied to their respective modules? For example, I have the following: /usr/local/lib/python2.5/site-packages/quodlibet/ /usr/local/lib/python2.5/site-packages/quodlibet-2.0.egg-info/ I'm assuming the egg-info directory is to make the corresponding module visible to setuptools (easy_install), right? If so, how does setuptools tie the egg-info directory to the module directory? Assuming that I'm on the right track, and for the sake of example...

eclipse+pydev+django+python+mysql+python-dateutil+pil+setuptools安装

余生颓废 提交于 2019-11-28 15:25:29
2010年1月27日,为了方便python入门的同学,我把我的配置和经验写下,因为python一来现在热门,二来不同软件件兼容性实在是还有很大问题,所以写下这些东西,对需要配置的同学而言是非常有用的。 我用的配置版本如下: 名称:eclipse7.0 下载地址: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-jee-galileo-SR1-win32.zip 名称:pydev 1.5.4 下载地址: http://pydev.org/download.html#download-current-release-last-version-tag 名称:Django-1.1.1.tar.gz 下载地址: http://www.djangoproject.com/download/ 名称:python-2.6.4rc2.msi 下载地址: http://www.python.org/ftp/python/2.6.4/python-2.6.4.msi 名称:MySQL-python-1.2.2.win32-py2.6.exe 下载地址: http://home.netimperia.com/files/misc/MySQL

Upgrading setuptools on OSX El Capitan

烂漫一生 提交于 2019-11-28 15:19:05
I'm trying to upgrade setuptools. Well actually I'm trying to upgrade ansible but it's trying to upgrade setuptools and failing. Trying to do it myself also fails. Even trying to uninstall it fails $ sudo -H pip install --upgrade setuptools Collecting setuptools Using cached setuptools-18.4-py2.py3-none-any.whl Installing collected packages: setuptools Found existing installation: setuptools 1.1.6 Uninstalling setuptools-1.1.6: Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main status = self.run

Removing python module installed in develop mode

隐身守侯 提交于 2019-11-28 15:01:38
问题 Hi I was trying the python packaging using setuptools and to test I installed the module in develop mode. i.e python setup.py develop This has added my modules directory to sys.path. Now I want to remove the module is there any way to do this? Thanks in advance 回答1: Use the --uninstall or -u option to develop , i.e: python setup.py develop --uninstall This will remove it from easy-install.pth and delete the .egg-link. The only thing it doesn't do is delete scripts (yet). 回答2: Edit easy

setuptools vs. distutils: why is distutils still a thing?

旧街凉风 提交于 2019-11-28 13:46:32
问题 Python has a confusing history of tools that can be used to package and describe projects: these include distutils in the Standard Library, distribute , distutils2 , and setuptools (and maybe more). It appears that distribute and distutils2 were discontinued in favor of setuptools , which leaves two competing standards. To my understanding setuptools offers far more options (e.g. declaring dependencies, tests, etc.) than distutils , however it is not included in the Python standard library

Prevent package from being installed on old Python versions

一笑奈何 提交于 2019-11-28 13:18:33
What can we put in a setup.py file to prevent pip from collecting and attempting to install a package when using an unsupported Python version? For example magicstack is a project listed with the trove classifier: Programming Language :: Python :: 3 :: Only So I expect the following behaviour if pip --version is tied to python 2.7: $ pip install magicstack Collecting magicstack Could not find a version that satisfies the requirement magicstack (from versions: ) No matching distribution found for magicstack But the actual behavior is that pip collects a release, downloads it, attempts to

Python ez_install : UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 11

拈花ヽ惹草 提交于 2019-11-28 11:44:24
Getting the error below trying to install ez_install, Windows 7 64 bit machine with fresh Python 2.7. Any ideas? Installing Setuptools Traceback (most recent call last): File "setup.py", line 17, in exec(init_file.read(), command_ns) File "", line 8, in File "c:\users\namar\appdata\local\temp\tmp1tanvy\setuptools-2.1\setuptools\__ init__.py", line 11, in from setuptools.extension import Extension File "c:\users\namar\appdata\local\temp\tmp1tanvy\setuptools-2.1\setuptools\ex tension.py", line 5, in from setuptools.dist import _get_unpatched File "c:\users\namar\appdata\local\temp\tmp1tanvy

how to cleanly uninstall my python packages with pip3 or any other way?

限于喜欢 提交于 2019-11-28 11:15:24
this is my setup.py file for installing my python program, after the installation using python3 setup.py install an entry to my program was created named testmain , when i did pip3 freeze it showed abc==0.1 in its output ,so i uninstalled it using pip3 with pip3 uninstall abc , though the packages were uninstalled but there still existed the entry testmain on my path , is there a way that pip3 also removes this entry during the uninstall or any other way that i can cleanly uninstall my programs under same scenario ? from setuptools import setup setup(name='abc', version='0.1', description=

Is it possible to express a platform-specific dependency in setup.py without building platform-specific versions of my egg?

最后都变了- 提交于 2019-11-28 09:45:32
We have a placeholder egg that contains no code and only exists for the sake of pulling down a list of dependent packages from our PyPi repository. Most of these dependent packages are platform-agnostic, however some are only used on Win32 platforms. Is it possible to somehow make the dependency platform-conditional, so that a given dependency in my install_requires list will only get pulled down when installing on Win32? Alternatively: Is it possible to specify a list of optional dependencies, that will be installed if available, but will not cause easy_install to fail if they are not? For