You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
+ cd uvloop-0.17.0+ ASMFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'+ LDFLAGS='-Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1'+ RUSTFLAGS='-C codegen-units=1 -C debuginfo=2 -C opt-level=2 -C link-arg=-fdata-sections -C link-arg=-ffunction-sections -C link-arg=-Wl,--as-needed -C link-arg=-Wl,-z,now -C link-arg=-Wl,-z,relro --cap-lints=warn'+ VALAFLAGS=-g+ CC=/usr/bin/gcc+ CXX=/usr/bin/g+++ FC=/usr/bin/gfortran+ AR=/usr/bin/gcc-ar+ NM=/usr/bin/gcc-nm+ RANLIB=/usr/bin/gcc-ranlib+ export ASMFLAGS CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS VALAFLAGS CC CXX FC AR NM RANLIB RUSTFLAGS VALAFLAGS+ PBR_VERSION=0.17.0+ PDM_PEP517_SCM_VERSION=0.17.0+ PDM_BUILD_SCM_VERSION=0.17.0+ SETUPTOOLS_SCM_PRETEND_VERSION=0.17.0+ /usr/bin/python3 -sBm build -w --no-isolation* Getting build dependencies for wheel...* Building wheel...running bdist_wheelrunning buildrunning build_pycreating buildcreating build/lib.linux-x86_64-cpython-38creating build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/__init__.py -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/_noop.py -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/_testbase.py -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/_version.py -> build/lib.linux-x86_64-cpython-38/uvlooprunning egg_infocreating uvloop.egg-infowriting uvloop.egg-info/PKG-INFOwriting dependency_links to uvloop.egg-info/dependency_links.txtwriting requirements to uvloop.egg-info/requires.txtwriting top-level names to uvloop.egg-info/top_level.txtwriting manifest file 'uvloop.egg-info/SOURCES.txt'Compiling uvloop/loop.pyx because it changed.[1/1] Cythonizing uvloop/loop.pyxreading manifest file 'uvloop.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'<string>:144: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.htmlwarning: no files found matching '*' under directory 'vendor/libuv'warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'warning: no previously-included files matching '*' found under directory 'vendor/libuv/docs'warning: no previously-included files matching '*' found under directory 'vendor/libuv/img'adding license file 'LICENSE-APACHE'adding license file 'LICENSE-MIT'writing manifest file 'uvloop.egg-info/SOURCES.txt'copying uvloop/cbhandles.pxd -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/cbhandles.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/dns.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/errors.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/loop.c -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/loop.pxd -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/loop.pyi -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/loop.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/lru.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/pseudosock.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/py.typed -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/request.pxd -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/request.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/server.pxd -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/server.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/sslproto.pxd -> build/lib.linux-x86_64-cpython-38/uvloopcopying uvloop/sslproto.pyx -> build/lib.linux-x86_64-cpython-38/uvloopcreating build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/async_.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/async_.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/basetransport.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/basetransport.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/check.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/check.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/fsevent.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/fsevent.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/handle.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/handle.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/idle.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/idle.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/pipe.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/pipe.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/poll.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/poll.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/process.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/process.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/stream.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/stream.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/streamserver.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/streamserver.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/tcp.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/tcp.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/timer.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/timer.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/udp.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/handlescopying uvloop/handles/udp.pyx -> build/lib.linux-x86_64-cpython-38/uvloop/handlescreating build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/__init__.py -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/compat.h -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/consts.pxi -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/debug.h -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/debug.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/flowcontrol.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/fork_handler.h -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/python.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/stdlib.pxi -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/system.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/includescopying uvloop/includes/uv.pxd -> build/lib.linux-x86_64-cpython-38/uvloop/includesrunning build_extbuilding 'uvloop.loop' extensioncreating build/temp.linux-x86_64-cpython-38creating build/temp.linux-x86_64-cpython-38/uvloop
/usr/bin/gcc -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -I/usr/include/python3.8 -c uvloop/loop.c -o build/temp.linux-x86_64-cpython-38/uvloop/loop.o ""
gcc: warning: : linker input file unused because linking not donegcc: error: : linker input file not found: No such file or directory/usr/lib/python3.8/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'uvloop.handles' is absent from the `packages` configuration.!! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'uvloop.handles' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'uvloop.handles' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'uvloop.handles' to be distributed and are already explicitly excluding 'uvloop.handles' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ********************************************************************************!! check.warn(importable)/usr/lib/python3.8/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'uvloop.includes' is absent from the `packages` configuration.!! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'uvloop.includes' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'uvloop.includes' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'uvloop.includes' to be distributed and are already explicitly excluding 'uvloop.includes' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ********************************************************************************!! check.warn(importable)error: command '/usr/bin/gcc' failed with exit code 1ERROR Backend subprocess exited when trying to invoke build_wheel
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: