Category : setup.py

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 ..

Read more

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 ..

Read more

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..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more

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 $ ..

Read more

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." ) ..

Read more