setuptools

localstack 0.12.18 fails to install

localstack 0.12.18 fails to install Question: I am trying to install localstack 0.12.18 on a windows 10 Enterprise machine. I’m running Python 3.9.0 and pip 23.0.1. I have downloaded the .tar.gz file directly from pypi.org and installing it via: pip install C:UsersmeDownloadslocalstack-0.12.18.tar.gz –trusted-host pypi.org –trusted-host files.pythonhosted.org This is the output: pip install C:UsersmeDownloadslocalstack-0.12.18.tar.gz –trusted-host pypi.org …

Total answers: 1

pip install <.whl file> installs dist_info but doesn't actually install the package

pip install <.whl file> installs dist_info but doesn't actually install the package Question: I’m trying change my package over from using setup.py to using pyproject.toml and setup.cfg. My setup.cfg is roughly as follows: [metadata] name = our_name version = 0.1.1 author = me [options] install_requires = networkx >= 3.0 My code is all under src, …

Total answers: 1

Setuptools is creating is creating egg for UNKNOWN instead of setuptools-rust

Setuptools is creating is creating egg for UNKNOWN instead of setuptools-rust Question: I’m trying to build setuptools rust (v1.3) using python 3.10.4, openssl 3.0 and setuptools v58.2 These are the commands and outputs: (venv3.10) [/dbc/blr-dbc2112/abandaru/projects]$ python cayman_pyo3_setuptools-rust/pyo3_setuptools-rust/src/setup.py build running build (venv3.10) [/dbc/blr-dbc2112/abandaru/projects]$ python cayman_pyo3_setuptools-rust/pyo3_setuptools-rust/src/setup.py install running install running bdist_egg running egg_info writing UNKNOWN.egg-info/PKG-INFO writing dependency_links …

Total answers: 1

pyproject.toml in an isolated environment

pyproject.toml in an isolated environment Question: I am trying to use pyproject.toml (and specifically setuptools_scm) in an isolated environment. My minimal pyproject.toml is: [build-system] requires = ["setuptools-scm"] [tool.setuptools_scm] write_to = "mypackage/version.py" However, when trying to install my package in an isolated environment, I get: $ pip3 install –no-index -e . Obtaining file:///home/…/myproject Installing build dependencies …

Total answers: 1

Installing test files with pyproject.toml and setuptools

Installing test files with pyproject.toml and setuptools Question: I’m migrating an old python project to the new pyproject.toml based system and am having trouble with getting files that are required by tests to install. Inside the pyproject.toml I have: [tool.setuptools] package-data = {"my_pkg_name" = ["tests/*.sdf", "tests/*.urdf", "tests/*.xml", "tests/meshes/*.obj"]} [build-system] requires = ["setuptools>=43.0.0", "wheel"] build-backend = …

Total answers: 1

Can't install Poetry in Ubuntu 20.04 Docker image due to setuptools error

Can't install Poetry in Ubuntu 20.04 Docker image due to setuptools error Question: I’m trying to build the following Dockerfile: FROM ubuntu:20.04 RUN apt-get update && apt-get install -y curl software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt install -y python3.11 python3.11-distutils && curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 && python3.11 -m pip install poetry==1.2.2 However, it fails …

Total answers: 1

Folders included in the tar.gz, not in the wheel, setuptools build

Folders included in the tar.gz, not in the wheel, setuptools build Question: The automatic discovery of setuptools.build_meta includes top-level folders into the tarball that shouldn’t be included. We were trying to build a python package with python3 -m build. Our project has a src-layout and we are using setuptools as the backend for the build. …

Total answers: 1

How to force a platform wheel using build and pyproject.toml?

How to force a platform wheel using build and pyproject.toml? Question: I am trying to force a Python3 non-universal wheel I’m building to be a platform wheel, despite not having any native build steps that happen during the distribution-packaging process. The wheel will include an OS-specific shared library, but that library is built and copied …

Total answers: 1

raise packaging.version.InvalidVersion linux pip

raise packaging.version.InvalidVersion linux pip Question: after updating pip and setuptools==66.0, pip stopped working and responds to all attempts to call it like this: Traceback (most recent call last): File "/usr/bin/pip", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py", line 3249, in <module> def _initialize_master_working_set(): File "/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py", line 3223, in _call_aside f(*args, **kwargs) File …

Total answers: 1

Create different python packages from same repository

Create different python packages from same repository Question: I’m building a Python package from a source code repository I have, using a setup.py script with setuptools.setup(…). In this function call I include all the Python libraries needed for the project to be installed using the install_requires argument. However, I noticed some users do not use …

Total answers: 1