stable

python-build-0.7.0-3.fc36

FEDORA-2022-c216d3d080 created by lbalhar 4 years ago for Fedora 36

Fix virtualenv creation by using the "venv" sysconfig installation scheme

How to install

Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:

sudo dnf upgrade --refresh --advisory=FEDORA-2022-c216d3d080

This update has been submitted for testing by lbalhar.

4 years ago

This update's test gating status has been changed to 'ignored'.

4 years ago

This update has been pushed to testing.

4 years ago
User Icon churchyard commented & provided feedback 4 years ago
karma

Before:

<mock-chroot> sh-5.1$ rpm -q python3-build
python3-build-0.7.0-2.fc36.noarch

<mock-chroot> sh-5.1$ python3 -m build --sdist --outdir dist
* Creating venv isolated environment...

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/build/__main__.py", line 372, in main
    built = build_call(
  File "/usr/lib/python3.10/site-packages/build/__main__.py", line 202, in build_package
    out = _build(isolation, builder, outdir, distribution, config_settings, skip_dependency_check)
  File "/usr/lib/python3.10/site-packages/build/__main__.py", line 140, in _build
    return _build_in_isolated_env(builder, outdir, distribution, config_settings)
  File "/usr/lib/python3.10/site-packages/build/__main__.py", line 104, in _build_in_isolated_env
    with _IsolatedEnvBuilder() as env:
  File "/usr/lib/python3.10/site-packages/build/env.py", line 104, in __enter__
    executable, scripts_dir = _create_isolated_env_venv(self._path)
  File "/usr/lib/python3.10/site-packages/build/env.py", line 258, in _create_isolated_env_venv
    executable, script_dir, purelib = _find_executable_and_scripts(path)
  File "/usr/lib/python3.10/site-packages/build/env.py", line 303, in _find_executable_and_scripts
    raise RuntimeError(f'Virtual environment creation failed, executable {executable} missing')
RuntimeError: Virtual environment creation failed, executable /tmp/build-env-e0y45nkh/local/bin/python missing

ERROR Virtual environment creation failed, executable /tmp/build-env-e0y45nkh/local/bin/python missing

After:

<mock-chroot> sh-5.1$ rpm -q python3-build
python3-build-0.7.0-3.fc37.noarch

<mock-chroot> sh-5.1$ python3 -m build --sdist --outdir dist
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools, wheel)
* Getting dependencies for sdist...
running egg_info
creating Pello.egg-info
writing Pello.egg-info/PKG-INFO
writing dependency_links to Pello.egg-info/dependency_links.txt
writing entry points to Pello.egg-info/entry_points.txt
writing requirements to Pello.egg-info/requires.txt
writing top-level names to Pello.egg-info/top_level.txt
writing manifest file 'Pello.egg-info/SOURCES.txt'
reading manifest file 'Pello.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'Pello.egg-info/SOURCES.txt'
* Building sdist...
running sdist
running egg_info
writing Pello.egg-info/PKG-INFO
writing dependency_links to Pello.egg-info/dependency_links.txt
writing entry points to Pello.egg-info/entry_points.txt
writing requirements to Pello.egg-info/requires.txt
writing top-level names to Pello.egg-info/top_level.txt
reading manifest file 'Pello.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'Pello.egg-info/SOURCES.txt'
running check
creating Pello-1.0.2
creating Pello-1.0.2/Pello.egg-info
creating Pello-1.0.2/pello
copying files to Pello-1.0.2...
copying LICENSE.txt -> Pello-1.0.2
copying MANIFEST.in -> Pello-1.0.2
copying README.md -> Pello-1.0.2
copying pyproject.toml -> Pello-1.0.2
copying setup.py -> Pello-1.0.2
copying Pello.egg-info/PKG-INFO -> Pello-1.0.2/Pello.egg-info
copying Pello.egg-info/SOURCES.txt -> Pello-1.0.2/Pello.egg-info
copying Pello.egg-info/dependency_links.txt -> Pello-1.0.2/Pello.egg-info
copying Pello.egg-info/entry_points.txt -> Pello-1.0.2/Pello.egg-info
copying Pello.egg-info/not-zip-safe -> Pello-1.0.2/Pello.egg-info
copying Pello.egg-info/requires.txt -> Pello-1.0.2/Pello.egg-info
copying Pello.egg-info/top_level.txt -> Pello-1.0.2/Pello.egg-info
copying pello/__init__.py -> Pello-1.0.2/pello
copying pello/__main__.py -> Pello-1.0.2/pello
copying pello/pello_greeting.py -> Pello-1.0.2/pello
Writing Pello-1.0.2/setup.cfg
Creating tar archive
removing 'Pello-1.0.2' (and everything under it)
Successfully built Pello-1.0.2.tar.gz
BZ#2059268 venv set up incorrectly: "Virtual environment creation failed, executable /tmp/build-env-9y6cy_l5/local/bin/python missing"

This update can be pushed to stable now if the maintainer wishes

4 years ago

This update has been submitted for stable by bodhi.

4 years ago

This update has been pushed to stable.

4 years ago

Please log in to add feedback.

Metadata
Type
bugfix
Karma
1
Signed
Content Type
RPM
Test Gating
Autopush Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
3 days
Dates
submitted
4 years ago
in testing
4 years ago
in stable
4 years ago
BZ#2059268 venv set up incorrectly: "Virtual environment creation failed, executable /tmp/build-env-9y6cy_l5/local/bin/python missing"
0
1

Automated Test Results