setuptools

Setuptools - shipping additional files [duplicate]

谁说我不能喝 提交于 2019-12-24 13:25:53
问题 This question already has answers here : How include static files to setuptools - python package (5 answers) Closed 6 years ago . Situation I createt my setup.py file. Most of it works out of the box but I'm having some trouble by shipping some additional files with it. But I noticed that the following files are not included to my tar.gz when running python setup.py sdist doc files virtual files service script The location of the doc files can be os specific. But I would like to see the

How to undo a Python setuptools --prefix path blunder

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:13:02
问题 When I installed Python's setuptools I absent mindedly tacked on a --prefix path I had been using on another machine: sh setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7.2 Now after this blunder when I try to install pip I get the following error: [root@kkdev src]# easy_install pip Searching for pip Best match: pip 1.0.2 Processing pip-1.0.2-py2.7.egg pip 1.0.2 is already the active version in easy-install.pth Installing pip script to /usr/bin error: /usr/bin/pip: No such file or directory

How to Update the installed Window Application (Creating Patches)

夙愿已清 提交于 2019-12-24 09:27:06
问题 i have requirement. i have created the window application and i have created the setup of that application that has been installed to client machine. Now the requirement is that if i will do the further modification to the project the client not need to install whole application again instead client only need to install Update of new version. like using Patches or something. How can i do this is there and tool in VS from which we can create the update patches or something. Please Help.. 回答1:

python setuptools: how can I install package with cython submodules?

走远了吗. 提交于 2019-12-24 07:39:06
问题 I have a python package named pytools. It contains a cython-based submodule nms. When I install the root package pytools with sudo python -H setup.py , the root package seems to be installed properly. But the installation didn't copy compiled nms.so to /usr/local/lib/python2.7/dist-packages/pytools/nms/ . And When I import pytools in ipython, an error encountered: ImportError: cannot import name nms If I manually copy the pytools/nms/nms.so to /usr/local/lib/python2.7/dist-packages/pytools

Containerising Python command line application

Deadly 提交于 2019-12-24 06:05:35
问题 I have created a Python command line application that is available through PyPi / pip install . The application has native dependencies. To make the installation less painful for Windows users I would like to create a Dockerised version out of this command line application. What are the steps to convert setup.py with an entry point and requirements.txt to a command line application easily? Are there any tooling around this, or should I just write Dockerfile by hand? 回答1: Well, You have to

script that adds packages to sys.path import as expected when run from ipython but throw exception when the script is run from python

元气小坏坏 提交于 2019-12-24 05:28:12
问题 I am a perplexed Python enthusiast. I posted What else can I do to troubleshoot a package not importing in python yet imports in ipython while in a virtualenv? thinking that I was having a problem with my virtualenv. Some more troubleshooting has revealed this is probably not the case. I would appreciate any insight or troubleshooting tips so that I can get on with package development. Thank you in advance! Synopsis of my problem on Ubuntu 14.04.1 LTS system with Python 2.7.6.: I have a

Why can't I install Python 2.7 under Centos 5.5?

风格不统一 提交于 2019-12-24 02:43:04
问题 Centos 5.5 comes with python 2.4 installed, and I needed python 2.7 for a project. I downloaded the source, ran, removed, and tried again with a couple alternative builds: ./configure && make && make install ./configure && make && make altinstall ./configure --prefix=/opt/python2.7 && make && make install I proceeded to install setuptools and virtualenv (making sure to reference the correct version of python, no symlinks or anything else weird). Built a virtualenv for the project, configured

Remove compile args in Cython

穿精又带淫゛_ 提交于 2019-12-24 01:18:37
问题 I want to compile my python project with cython. I created this setup.py file : from setuptools import setup, find_packages from Cython.Build import cythonize recursive_tree = [file for file in glob.iglob("sample/**/*.py", recursive=True)] setup( name = 'sample', version = sample.__version__, packages = find_packages(), author = "42", description = "Cython Sample", include_package_data = True, ext_modules = cythonize( recursive_tree, nthreads=2, exclude="setup.py", build_dir = "out", ), ) In

Force setuptools to use dependency_links to install mysqlclient

纵然是瞬间 提交于 2019-12-24 00:23:44
问题 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

Python setuptools package_data - pip fails on subfolders

六眼飞鱼酱① 提交于 2019-12-23 17:08:08
问题 I am trying to make my own pip package installation to work and I have troubles with subfolders in additional data specified in package_data. Everything seems to be fine (all data are included in produced .zip file), but when I run "pip install myapp", it says: "error: can't copy 'myapp\web\styles': doesn't exist or not a regular file" Dirtree: projectDir setup.py myapp __init__.py webapp.py web index.html styles style.css setup.py: from setuptools import setup setup ( zip_safe = False, name