Hellooo Python Team!args=None, before_clean=None, clean_args=None, after_clean=None, before_configure=None, configure_args=None, after_configure=None, before_build=None, build_args=None, after_build=None, before_install=None, install_args=None, after_install=None, before_
I was trying to package 'python-asyncmy',
Upstream: https://github.com/long2ice/asyncmy
This is my current working Salsa repo : https://salsa.debian.org/kathara/python-asyncmy
There's no ITP yet. While building this package within the chroot, I got
this error message:
root@ivy:/build/python-asyncmy-0.2.9# pybuild --build -i python{version} -p 3.12 -v
D: pybuild pybuild:602: version: 6.20240603
D: pybuild pybuild:603: ['/usr/bin/pybuild', '--build', '-i', 'python{version}', '-p', '3.12', '-v']
D: pybuild pybuild:39: cfg: Namespace(verbose=True, quiet=False, really_quiet=False, detect_only=False, clean_only=False, configure_only=False, build_only=True, install_only=False, test_only=False, autopkgtest_only=False, list_systems=False, print_
D: pybuild __init__:37: cannot initialize 'cmake' plugin: Missing command 'cmake'
D: pybuild __init__:37: cannot initialize 'meson' plugin: Missing command 'meson'
D: pybuild tools:231: invoking: /usr/bin/dpkg-architecture
D: pybuild debhelper:174: source=python-asyncmy, binary packages=['python3-asyncmy']
D: pybuild pybuild:151: detected build system: pyproject (certainty: 99%)
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/python-asyncmy-0.2.9/.pybuild/cpython3_3.12
D: pybuild tools:231: invoking: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/python-asyncmy-0.2.9/.pybuild/cpython3_3.12
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
E: pybuild pybuild:389: build: plugin pyproject failed with: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
Traceback (most recent call last):
File "/usr/bin/pybuild", line 387, in main
run(func, i, version, c)
File "/usr/bin/pybuild", line 325, in run
result = func(context, args)
^^^^^^^^^^^^^^^^^^^
File "/usr/share/dh-python/dhpython/build/plugin_pyproject.py", line 109, in build
self.unpack_wheel(context, args)
File "/usr/share/dh-python/dhpython/build/plugin_pyproject.py", line 166, in unpack_wheel
wheel = Path(self.built_wheel(context, args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/pathlib.py", line 1164, in __init__
super().__init__(*args)
File "/usr/lib/python3.12/pathlib.py", line 373, in __init__
raise TypeError(
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
root@ivy:/build/python-asyncmy-0.2.9#
$ git diff
diff --git a/dhpython/build/plugin_pyproject.py b/dhpython/build/plugin_pyproject.py
index 314f3c4..1791aa7 100644
--- a/dhpython/build/plugin_pyproject.py
+++ b/dhpython/build/plugin_pyproject.py
@@ -163,16 +163,19 @@ class BuildSystem(Base):
script_kind='posix',
)
- wheel = Path(self.built_wheel(context, args))
- if wheel.name.startswith('UNKNOWN'):
- raise Exception(f'UNKNOWN wheel found: {wheel.name}. Does '
- 'pyproject.toml specify a build-backend?')
- with WheelFile.open(wheel) as source:
- install(
- source=source,
- destination=destination,
- additional_metadata={},
- )
+ if self.built_wheel(context, args) is not None:
+ wheel = Path(self.built_wheel(context, args))
+ if wheel.name.startswith('UNKNOWN'):
+ raise Exception(f'UNKNOWN wheel found: {wheel.name}. Does ' + 'pyproject.toml specify a build-backend?')
+ with WheelFile.open(wheel) as source:
+ install(
+ source=source,
+ destination=destination,
+ additional_metadata={},
+ )
+ else:
+ raise Exception("No wheel could be found!")
def install(self, context, args):
log.info('Copying package built for %s to destdir',
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 47:14:19 |
Calls: | 9,566 |
Files: | 13,659 |
Messages: | 6,142,211 |