setuptools

python setuptools install_requires is ignored when overriding cmdclass

匿名 (未验证) 提交于 2019-12-03 01:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a setup.py that looks like this: from setuptools import setup from subprocess import call from setuptools.command.install import install class MyInstall(install): def run(self): call(["pip install -r requirements.txt --no-clean"], shell=True) install.run(self) setup( author='Attila Zseder', version='0.1', name='entity_extractor', packages=['...'], install_requires=['DAWG', 'mrjob', 'cchardet'], package_dir={'': 'modules'}, scripts=['...'], cmdclass={'install': MyInstall}, ) I need MyInstall because I want to install some libraries

Installing Fabric On Windows (Error No Module Called Readline)

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to use the Fabric 0.1.1 deploy tool ( http://docs.fabfile.org/ ) on Windows and we're running into an issue with the readline module. I've been through various threads but can't seem to solve the issue. It's important because we can't deploy applications from Windows based machines. C : \Documents and Settings \dev\Desktop\deploy > fab Traceback ( most recent call last ): File "C:\python\Scripts\fab-script.py" , line 8 , in load_entry_point ( 'fabric==0.1.1' , 'console_scripts' , 'fab' )() File "c:\python\lib\site

pip install -U setuptools fail windows 10

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just installed Python3.7 and Pycharm on my Windows 10 PC. I am running pip version 9.0.2 In Pycharm, it says I have version 28.8.0 of setuptools, when I try to upgrade this in Pycharm, which I believe runs the line pip install -U setuptools I get the error: PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\users\Username\pycharmprojects\untitled1\venv\lib\site- packages\setuptools-28.8.0-py3.6.egg' -> 'C:\Users\Username\AppData\Local\Temp\pip-i5jxitem- uninstall\users

How to include a shared C library in a Python package

亡梦爱人 提交于 2019-12-03 01:32:27
I have a project depending on a shared library. To make it clear from the beginning: the shared library is a pure C library and not a Python library. For reasons of simplicity I created a small demo project called pkgtest which I will refer to. So what needs to be done is: Run a Makefile to compile the library and place the compiled shared library (called libhello.so here) file somewhere it can be accessed from within the depending Python package. My best guess so far was to run the makefile as a preinstallation routine, copy the libhello.so file in the packages directory and add it to the

Python Daemon Packaging Best Practices

孤人 提交于 2019-12-03 01:32:19
问题 I have a tool which I have written in python and generally should be run as a daemon. What are the best practices for packaging this tool for distribution, particularly how should settings files and the daemon executable/script be handled? Relatedly are there any common tools for setting up the daemon for running on boot as appropriate for the given platform (i.e. init scripts on linux, services on windows, launchd on os x)? 回答1: To answer one part of your question, there are no tools I know

easy_install libmysqld-dev error :'NoneType' object has no attribute 'clone'

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: this is the error : ( mysite ) zjm1126@zjm1126 - G41MT - S2 :~ /zjm_test/ mysite$ ./ bin / easy_install libmysqld - dev Searching for libmysqld - dev Reading http : //pypi.python.org/simple/libmysqld-dev/ Couldn 't find index page for ' libmysqld - dev ' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for libmysqld-dev Best match: None Traceback (most recent call last): File "./bin/easy_install", line 8, in load_entry_point('

Python install uninstall easy_install

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have two versions of python on my mac: One preinstalled by Apple in /usr/bin One from python.org in /Library/Frameworks/Python.framework/Versions/2.6 easy_install always installs to /usr/bin for some ununderstanable reason So I explicitly now install easy_install in: sh setuptools-0.6c11-py2.6.egg --install-dir=/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages Now I want to easy_install pip AND ....: Searching for pip Best match: pip 0.8 Processing pip-0.8-py2.6.egg pip 0.8 is already the active version in easy

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

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 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 parse_requirements(__requires__), Environment() File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7

Virtualenv OSError - setuptools pip wheel failed with error code 1

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get the following error message when trying to set up a virtual environment with virtualenv 15.0.2 but receive OSError setuptools pip wheel failed with error code 1. New python executable in /Users/nathmorissette/projects/tutorial/venv/bin/python Installing setuptools, pip, wheel... Complete output from command /Users/nathmorissett...rial/venv/bin/python - setuptools pip wheel: Traceback (most recent call last): File "<stdin>", line 4, in <module> File "/Users/nathmorissette/miniconda2/lib/python2.7/tempfile.py", line 32, in <module>

Force setuptools to use dependency_links to install mysqlclient

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Windows, and I need to install the WHL file from here . Here's what I have in setup.py: install_requires=['mysqlclient==1.3.7', ... dependency_links=['https://pypi.python.org/packages/cp27/m/mysqlclient/mysqlclient-1.3.7-cp27-none-win32.whl#md5=e9e726fd6f1912af78e2bf6ab56c02f3',] However, setuptools is downloading the tar.gz file instead and attempting to build, which won't work on my system. I followed this solution and changed my install_requires to use mysqlclient<=1.3.7 , but I still get the same problem. Here is the output: