setuptools

How to force virtualenv to install latest setuptools and pip from pypi?

强颜欢笑 提交于 2019-11-27 15:51:27
问题 Is it possible to force virtualenv to use the latest setuptools and pip available from pypi? Essentially, I'm looking for the opposite of the --never-download flag. Currently, when I make a new virtualenv, it uses the local (old) versions that come bundled with virtualenv. $ v.mk testvenv New python executable in testvenv/bin/python Installing setuptools............done. Installing pip...............done. $ pip show setuptools --- Name: setuptools Version: 0.6c11 Location: /Users/cwilson/

Python packages installation in Windows

穿精又带淫゛_ 提交于 2019-11-27 14:58:44
问题 I recently began learning Python, and I am a bit confused about how packages are distributed and installed. I understand that the official way of installing packages is distutils : you download the source tarball, unpack it, and run: python setup.py install , then the module will automagically install itself I also know about setuptools which comes with easy_install helper script. It uses eggs for distribution, and from what I understand, is built on top of distutils and does the same thing

pip install dependency links

一个人想着一个人 提交于 2019-11-27 14:45:38
I am using python version 2.7 and pip version is 1.5.6 . I want to install extra libraries from url like a git repo on setup.py is being installed. I was putting extras in install_requires parameter in setup.py . This means, my library requires extra libraries and they must also be installed. ... install_requires=[ "Django", .... ], ... But urls like git repos are not valid string in install_requires in setup.py . Assume that, I want to install a library from github. I have searched about that issue and I found something which I can put libraries such that in dependency_links in setup.py . But

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,

How to handle python packages with conflicting names?

拜拜、爱过 提交于 2019-11-27 13:59:18
问题 I'm using two python packages that have the same name. http://www.alembic.io/updates.html https://pypi.python.org/pypi/alembic Is there a canonical or pythonic way to handle installing two packages with conflicting names? So far, I've only occasionally needed one of the packages during development/building, so I've been using a separate virtualenv to deal with the conflict, but it makes the build step more complex and I wonder if there isn't a better way to handle it. 回答1: You could use the -

Using setuptools to create a cython package calling an external C library

梦想与她 提交于 2019-11-27 12:19:31
问题 I am trying to compile, install and run a package that we'll call myPackage . It contains a *.pyx file that calls the function fftw_set_timelimit() from library fftw . Currently, when I run a script clientScript.py that imports the package I obtain the following error message : Traceback (most recent call last): File "clientScript.py", line 5, in <module> import myPackage.myModule ImportError: /usr/local/lib/python2.7/dist-packages/myPackage/myModule.so: undefined symbol: fftw_set_timelimit

Why is pip installing an old version of my package?

℡╲_俬逩灬. 提交于 2019-11-27 11:25:07
I've just uploaded a new version of my package to PyPi (1.2.1.0-r4): I can download the egg file and install it with easy_install, and the version checks out correctly. But when I try to install using pip, it installs version 1.1.0.0 instead. Even if I explicitly specify the version to pip with pip install -Iv tome==1.2.1.0-r4 , I get this message: Requested tome==1.2.1.0-r4, but installing version 1.1.0.0 , but I don't understand why. I double checked with parse_version and confirmed that the version string on 1.2.1 is greater than that on 1.1.0 as shown: >>> from pkg_resources import parse

Latest 'pip' fails with “requires setuptools >= 0.8 for dist-info”

旧时模样 提交于 2019-11-27 10:33:03
Using the recent (1.5) version of pip , I get an error when attempting to update several packages. For example, sudo pip install -U pytz results in failure with: Wheel installs require setuptools >= 0.8 for dist-info support. pip's wheel support requires setuptools >= 0.8 for dist-info support. I don't understand this message (I have setuptools 2.1) or what to do about it. Exception information from the log for this error: Exception information: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args)

How do I set up Setuptools for Python 2.6 on Windows?

浪子不回头ぞ 提交于 2019-11-27 10:11:20
Is there any way to install Setuptools for Python 2.6 in Windows without having an exe installer? There isn't one built at the moment, and the maintainer of Setuptools has stated that it will probably be a while before he'll get to it. Does anyone know of a way to install it anyway? bhadra First Option - Online Installation (i.e. remaining connected to the Internet during the entire installation process): Download setuptools-0.6c9.tar.gz Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder Go the folder (refer step 2) and run ez_setup.py from the

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

亡梦爱人 提交于 2019-11-27 09:42:14
问题 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