setup.py

Cythonize but not compile .pyx files using setup.py

▼魔方 西西 提交于 2020-03-22 04:36:01
问题 I have a Cython project containing several .pyx files. To distribute my project I would like to provide my generated .c files as recommended in the Cython documentation, to minimize problems with different Cython versions. My current work flow is to build the project using: me@machine$ python setup.py build_ext --inplace This cythonizes (i.e. translate .pyx files to .c / .cpp files using Cython) all .pyx files and then compiles them. For a release I do not need the compiled ( .so ) files, so

Cythonize but not compile .pyx files using setup.py

拥有回忆 提交于 2020-03-22 04:35:08
问题 I have a Cython project containing several .pyx files. To distribute my project I would like to provide my generated .c files as recommended in the Cython documentation, to minimize problems with different Cython versions. My current work flow is to build the project using: me@machine$ python setup.py build_ext --inplace This cythonizes (i.e. translate .pyx files to .c / .cpp files using Cython) all .pyx files and then compiles them. For a release I do not need the compiled ( .so ) files, so

pip3 installation commands repeated failure to create file '/tmp/pip-install-xxxxx/package' [duplicate]

▼魔方 西西 提交于 2020-02-04 03:53:24
问题 This question already has answers here : Install PyQt5 5.14.1 on Linux (2 answers) Closed 18 days ago . Whenever I try to install a package, for example pip3 install PyQt5 the command fails with a message about a missing directory in the /tmp directory pip3 install PyQt5 Collecting PyQt5 Downloading https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz (3.2MB) 100% |████████████████████████████████| 3.2MB 19.3MB/s

python, change user site directory or install setup.py --prefix with --user

僤鯓⒐⒋嵵緔 提交于 2020-02-01 04:35:25
问题 I'd want to install python modules as non-root user like this $ pip install -I --install-option="--prefix=~/usr" scipy Unfortunately this usually does not work unless you specify --user . But --user can't be used together with --prefix . Using --user only (without --prefix ) installs to ~/.local which I find ugly because I have a well maintained ~/usr and don't want to add even more stuff to my env to make ~/.local usable too. So my questions: How can I let --prefix and --user work together

Python setuptools with company signed SSL certificate

断了今生、忘了曾经 提交于 2020-01-30 05:07:35
问题 I am new to setuptools on python. I added a package 'numpy' and 'tensorflow' to install_requires list and running python setup.py install. It does not install due to SSL issue. We use self signed SSL for https based urls. In case of pip for individual packages I can use --cert option. As I know setuptools use pip indirectly. If so, is there anyway to force it to use --cert option when setup.py is ran? 回答1: It turns out that we have actually two problems here. The problem about tensorflow is

Python setuptools with company signed SSL certificate

*爱你&永不变心* 提交于 2020-01-30 05:05:13
问题 I am new to setuptools on python. I added a package 'numpy' and 'tensorflow' to install_requires list and running python setup.py install. It does not install due to SSL issue. We use self signed SSL for https based urls. In case of pip for individual packages I can use --cert option. As I know setuptools use pip indirectly. If so, is there anyway to force it to use --cert option when setup.py is ran? 回答1: It turns out that we have actually two problems here. The problem about tensorflow is

OpenCV Python Building wheel for dlib (setup.py)

柔情痞子 提交于 2020-01-25 02:03:04
问题 I am trying to install face_recognition on Ubuntu. I keep running into this loop, which goes on forever. Please help. pip install face_recognition Collecting face_recognition Using cached https://files.pythonhosted.org/packages/3f/ed/ad9a28042f373d4633fc8b49109b623597d6f193d3bbbef7780a5ee8eef2/face_recognition-1.2.3-py2.py3-none-any.whl Collecting Pillow (from face_recognition) Using cached https://files.pythonhosted.org/packages/c1/e6

Define setup.py dependencies from a private PyPI

ぃ、小莉子 提交于 2020-01-24 08:50:07
问题 I'd like to install dependencies from my private PyPI by specifying them within a setup.py . I've already tried to specify where to find dependencies within the dependency_links this way: setup( ... install_requires=["foo==1.0"], dependency_links=["https://my.private.pypi/"], ... ) I've also tried to define the entire URL within the dependency_links : setup( ... install_requires=[], dependency_links=["https://my.private.pypi/foo/foo-1.0.tar.gz"], ... ) but when I try to install with python

How to specify pytroch as a package requirement on windows?

懵懂的女人 提交于 2020-01-23 22:56:41
问题 I have a python package which depends on pytorch and which I’d like windows users to be able to install via pip (the specific package is: https://github.com/mindsdb/lightwood, but I don’t think this is very relevant to my question). What are the best practices for going about this ? Are there some project I could use as examples ? It seems like the pypi hosted version of torch & torchvision aren’t windows compatible and the “getting started” section suggests installing from the custom pytorch

How to specify dependencies when creating the setup.py file for a python package

痴心易碎 提交于 2020-01-19 09:45:13
问题 The python doc for "Writing the Setupscript (http://docs.python.org/2/distutils/setupscript.html) mentions that dependencies can be specified under section > 2.4. Relationships between Distributions and Packages [...] These relationships can be specified using keyword arguments to the distutils.core.setup() function. Dependencies on other Python modules and packages can be specified by supplying the requires keyword argument to setup(). The value must be a list of strings. Each string