setup.py

How to use setup.py to install dependencies only?

梦想的初衷 提交于 2021-02-06 15:27:51
问题 I am not interested in installing my package itself but I am interested installing all the dependencies used by my package. Is there a way to do this using setup.py ? It seems setup.py installs my package and all dependencies. 回答1: Use the -e flag on pip install pip install -e . 回答2: The only way I've found to reliably do this in a straightforward manner is this: pip install . && pip uninstall `python setup.py --name` 来源: https://stackoverflow.com/questions/30797124/how-to-use-setup-py-to

How to use setup.py to install dependencies only?

♀尐吖头ヾ 提交于 2021-02-06 15:27:34
问题 I am not interested in installing my package itself but I am interested installing all the dependencies used by my package. Is there a way to do this using setup.py ? It seems setup.py installs my package and all dependencies. 回答1: Use the -e flag on pip install pip install -e . 回答2: The only way I've found to reliably do this in a straightforward manner is this: pip install . && pip uninstall `python setup.py --name` 来源: https://stackoverflow.com/questions/30797124/how-to-use-setup-py-to

Module found in install mode but not in develop mode using setuptools

耗尽温柔 提交于 2021-02-05 03:23:49
问题 I'm using setuptools for the first time, and trying to package my code so that others can easily develop it. I'm running everything in a virtual environment. Short question : How do I change the directory that the egg-link points to when I run python setup.py develop ? Long question : The module I'm developing is called cops_and_robots . When I run python setup.py install , things work fine and I'm able to import my cops_and_robots module. However, when I run python setup.py develop , running

Module found in install mode but not in develop mode using setuptools

爷,独闯天下 提交于 2021-02-05 03:21:14
问题 I'm using setuptools for the first time, and trying to package my code so that others can easily develop it. I'm running everything in a virtual environment. Short question : How do I change the directory that the egg-link points to when I run python setup.py develop ? Long question : The module I'm developing is called cops_and_robots . When I run python setup.py install , things work fine and I'm able to import my cops_and_robots module. However, when I run python setup.py develop , running

Create a python script that install python modules and run some commands

自作多情 提交于 2021-02-04 21:55:47
问题 I want to create a thin wrapper around this library https://github.com/jupyter-incubator/sparkmagic#installation As you can see in the link, the installation step requires installing some packages with pip run some command of the type jupyter enable ... or jupyter-kernelspec install custom configuration file that I want to generate and place in the correct place I am checking which options I have to make the installation as automatic as calling a script. So far I have came up creating a bash

pip3 setup.py install_requires PEP 508 git URL for private repo

我的梦境 提交于 2021-02-04 13:11:13
问题 I am trying to run: pip3 install -e . in my Python project where I have the following setup.py : from setuptools import setup setup( name='mypackage', install_requires=[ "anotherpackage@git+git@bitbucket.org:myorg/anotherpackage.git" ] ) but it fails with: error in mypackage setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid URL given I guess it is correct about the format of my URL as PEP 508 doesn't allow

pip3 setup.py install_requires PEP 508 git URL for private repo

社会主义新天地 提交于 2021-02-04 13:10:06
问题 I am trying to run: pip3 install -e . in my Python project where I have the following setup.py : from setuptools import setup setup( name='mypackage', install_requires=[ "anotherpackage@git+git@bitbucket.org:myorg/anotherpackage.git" ] ) but it fails with: error in mypackage setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid URL given I guess it is correct about the format of my URL as PEP 508 doesn't allow

yaml file not getting copied when installing from setup.py

感情迁移 提交于 2021-01-29 09:30:11
问题 for my distutils package the yaml file along with python files is not getting copied setup.py from distutils.core import setup files = ["*.yaml", "package/*"] setup(name = "mypackage", version = "0.1", description = "description", author = "Ciasto", author_email = "me@email.com", packages = ['package'], package_data = {'package' : files }, scripts = ["scripts/runner"], ) this is the project directory structure: $ tree package/ |____ | |______init__.py | |____command.py | |____constants.py | |

Is there a possibility to pass start arguments to setup.py test

半世苍凉 提交于 2021-01-29 03:32:55
问题 I have a problem with the CI of my python project, the project is a python API which communicates with a server. To make it possible, to run builds concurrently I must have a possibility to pass the servers port to the python setup.py test command. For example python setup.py test --port 1337 . Is there any possibility to get this done? At the moment I have a setup.py file and use unittest for testing, but I'm totally free to use another framework like nose. The important thing is to pass the

Distutils ignores build/lib on Ubuntu

余生长醉 提交于 2021-01-28 13:41:55
问题 I have a setup.py script which builds files to be installed to the ./build/lib directory. The files are populated by the run() method of my custom distutils.command.build.build subclass: from distutils.command.build import build from distutils.core import setup class MyBuild(build): def run(self): # Populate files to ./build/lib setup( # ... cmdclass=dict(build=MyBuild) ) Now, according to this article the setup script should copy everything in the ./build/lib directory to the installation