I’m trying to build a Python 3 package, and install it later with pip3 install -e .. -e flag while still developing the product. The structure is: pkg-name | |—setup.py |—package_name |—utils |— dir1 (contains setup.py, some .cpp and some .hpp files) |— dir2 (contains setup.py, some .cpp and some .hpp files) I’m trying to ..
I have created a python package and implemented a Graphical Interface for it, using PyQt5. However, when I release it internally, some problems appeared. When someone installs my package, either using the release .whl file or using the setup.py script, the PyQt5 module is not correctly installed, and the following error is returned: Traceback (most ..
I am using the following setup() to install a private python package in my_package. setup(name="my_package", version="0.0.0", description="My package.", packages=[‘my_package’], install_requires=’private_repo @ git+https://private-gitlab-user:**************@gitlab.com/private/other/[email protected]′, python_requires=">=3", ) It shows the following result raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/private-repo/ What could possibly go wrong? Thanks. Source: Python..
I’ve a small package that does not work on torch v1.8.0 but it works fine on the new v1.8.1 version and other older versions v1.7.1 so want to exclude the v1.8.0 version. I could just set install_requires=[ "torch>=1.8.1", … but the torch package size is huge and also want mypackage to work on the older ..
I’m trying to create a python setup file that requires an installation of the libact package. Normally, one would only need to pass the name of the package to a setup object from the setuptools package, i.e.: from setuptools import setup setup(name=.., …. install_requires=[‘libact’],) However, the installation of this library only works (at least for ..
Let’s say we create a private python package, that depends on another private python hosted in a private enterprise PyPi repository (artifactory). The setup.cfg looks as follows, [options] python_requires = >= 3.6, <3.9.0a0 setup_requires = setuptools >= 46.4.0 wheel install_requires = [ keyring private-pkg1 >= 0.1.0 private-pkg2 >= 0.1.0 simple-parsing ] $HOME/.pip/pip.confg is configured download ..
I have custom repository that looks similarly to following: my_package ├── conf | └── cfg.yaml ├── sub_package | └── utils.py └── some_module.py README.md requirements.txt setup.py When I use local install (pip install .) everything works fine but when I try to install my package from Git (pip install git+ssh://[email protected]/path/to/repo/my_package.git) I cannot find conf with cfg.yml ..
In the MatPlotlib Installation Guide there is a statement that in case of using locally installed freetype and qhull libraries one shall configure setup.cfg in the following way: [libs] system_freetype = true system_qhull = true When I call pip install: /…/bin/python3 -m pip install –index-url=https://myartifactory.bla/artifactory/api/pypi/pypi-repo/simple –trusted-host=myartifactory.bla matplotlib==3.3.4 I got an error(*) as the system is ..
It is was probably asked and answered somewhere, but I searched a lot and I didn’t found where. Sorry if duplicated. I have a project (https://github.com/PyFPGA/openflow) which depends on pyyaml: setup( …, install_requires=[‘pyyaml’] ) When installed with pip3 install -e . pyyaml is not installed. It can be verified with: $ virtualenv venv1 –python=python3 $ ..
I want to be able to install some python code, using python-click and commands, with setup.py. I have the following code: @click.group() @click.option( "-v", "–verbose", count=True, default=0, help="-v for DEBUG", ) def cli(verbose): print(verbose) @cli.command("list") @click.option( "–list-option", help="Special option for list command." ) def my_list_command(list_option): print(list_option) @cli.command("find") @click.option( "–find-option", help="Special option for find command." ) ..