dask / crick

Streaming and approximate algorithms. WIP, use at own risk.
BSD 3-Clause "New" or "Revised" License
23 stars 17 forks source link

0.0.6: pep517 build and compile time warnings and .c and .h files are added into .whl #50

Open kloczek opened 3 months ago

kloczek commented 3 months ago

Describe the issue: Looks like pep517 build sows some warnings anf it includes .c and .h files in .whl archive. Compiler shows some warnings as well

+ /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
Compiling crick/tdigest.pyx because it changed.
Compiling crick/space_saving.pyx because it changed.
Compiling crick/stats.pyx because it changed.
[1/3] Cythonizing crick/space_saving.pyx
/usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/tkloczko/rpmbuild/BUILD/crick-0.0.6/crick/space_saving.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
[2/3] Cythonizing crick/stats.pyx
/usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/tkloczko/rpmbuild/BUILD/crick-0.0.6/crick/stats.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
[3/3] Cythonizing crick/tdigest.pyx
/usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/tkloczko/rpmbuild/BUILD/crick-0.0.6/crick/tdigest.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
running egg_info
creating crick.egg-info
writing crick.egg-info/PKG-INFO
writing dependency_links to crick.egg-info/dependency_links.txt
writing top-level names to crick.egg-info/top_level.txt
writing manifest file 'crick.egg-info/SOURCES.txt'
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'crick.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'crick.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/crick
copying crick/__init__.py -> build/lib.linux-x86_64-cpython-310/crick
copying crick/_version.py -> build/lib.linux-x86_64-cpython-310/crick
creating build/lib.linux-x86_64-cpython-310/crick/tests
copying crick/tests/__init__.py -> build/lib.linux-x86_64-cpython-310/crick/tests
copying crick/tests/test_space_saving.py -> build/lib.linux-x86_64-cpython-310/crick/tests
copying crick/tests/test_stats.py -> build/lib.linux-x86_64-cpython-310/crick/tests
copying crick/tests/test_tdigest.py -> build/lib.linux-x86_64-cpython-310/crick/tests
running egg_info
writing crick.egg-info/PKG-INFO
writing dependency_links to crick.egg-info/dependency_links.txt
writing top-level names to crick.egg-info/top_level.txt
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative
dependency /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'crick.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'crick.egg-info/SOURCES.txt'
/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'crick.klib' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'crick.klib' 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 'crick.klib' 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 'crick.klib' to be distributed and are
        already explicitly excluding 'crick.klib' 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)
copying crick/common.h -> build/lib.linux-x86_64-cpython-310/crick
copying crick/space_saving.c -> build/lib.linux-x86_64-cpython-310/crick
copying crick/space_saving.pyx -> build/lib.linux-x86_64-cpython-310/crick
copying crick/space_saving_stubs.c -> build/lib.linux-x86_64-cpython-310/crick
copying crick/stats.c -> build/lib.linux-x86_64-cpython-310/crick
copying crick/stats.pyx -> build/lib.linux-x86_64-cpython-310/crick
copying crick/stats_stubs.c -> build/lib.linux-x86_64-cpython-310/crick
copying crick/tdigest.c -> build/lib.linux-x86_64-cpython-310/crick
copying crick/tdigest.pyx -> build/lib.linux-x86_64-cpython-310/crick
copying crick/tdigest_stubs.c -> build/lib.linux-x86_64-cpython-310/crick
creating build/lib.linux-x86_64-cpython-310/crick/klib
copying crick/klib/khash.h -> build/lib.linux-x86_64-cpython-310/crick/klib
UPDATING build/lib.linux-x86_64-cpython-310/crick/_version.py
set build/lib.linux-x86_64-cpython-310/crick/_version.py to '0.0.6'
running build_ext
building 'crick.tdigest' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/crick
/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -fPIC -Icrick -I/usr/lib64/python3.10/site-packages/numpy/core/include -Icrick/klib -I/usr/include/python3.10 -c crick/tdigest.c -o build/temp.linux-x86_64-cpython-310/crick/tdigest.o
In file included from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929,
                 from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from crick/tdigest.c:1260:
/usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
crick/tdigest.c: In function ‘__pyx_f_5crick_7tdigest__cdf_to_hist’:
crick/tdigest.c:19961:33: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
19961 |   for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
      |                                 ^
/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security build/temp.linux-x86_64-cpython-310/crick/tdigest.o -L/usr/lib64/python3.10/site-packages/numpy/core/lib -L/usr/lib64 -lnpymath -o build/lib.linux-x86_64-cpython-310/crick/tdigest.cpython-310-x86_64-linux-gnu.so
building 'crick.space_saving' extension
/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -fPIC -Icrick -I/usr/lib64/python3.10/site-packages/numpy/core/include -Icrick/klib -I/usr/include/python3.10 -c crick/space_saving.c -o build/temp.linux-x86_64-cpython-310/crick/space_saving.o
In file included from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929,
                 from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from crick/space_saving.c:1258:
/usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
In file included from crick/space_saving.c:1263:
crick/space_saving_stubs.c: In function ‘asint64’:
crick/space_saving_stubs.c:808:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  808 |   return *(npy_int64 *)(&key);
      |           ^~~~~~~~~~~~~~~~~~~
/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security build/temp.linux-x86_64-cpython-310/crick/space_saving.o -L/usr/lib64/python3.10/site-packages/numpy/core/lib -L/usr/lib64 -lnpymath -o build/lib.linux-x86_64-cpython-310/crick/space_saving.cpython-310-x86_64-linux-gnu.so
building 'crick.stats' extension
/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -fPIC -Icrick -I/usr/lib64/python3.10/site-packages/numpy/core/include -Icrick/klib -I/usr/include/python3.10 -c crick/stats.c -o build/temp.linux-x86_64-cpython-310/crick/stats.o
In file included from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929,
                 from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /usr/lib64/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from crick/stats.c:1259:
/usr/lib64/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
In file included from crick/stats.c:1265:
crick/stats_stubs.c: In function ‘stats_kurt’:
crick/stats_stubs.c:132:10: warning: operation on ‘kurt’ may be undefined [-Wsequence-point]
  132 |     kurt = m2 ? kurt = m4 / (m2 * m2) : 0;
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security build/temp.linux-x86_64-cpython-310/crick/stats.o -L/usr/lib64/python3.10/site-packages/numpy/core/lib -L/usr/lib64 -lnpymath -o build/lib.linux-x86_64-cpython-310/crick/stats.cpython-310-x86_64-linux-gnu.so
UPDATING build/lib.linux-x86_64-cpython-310/crick/_version.py
set build/lib.linux-x86_64-cpython-310/crick/_version.py to '0.0.6'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/__init__.py -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/_version.py -> build/bdist.linux-x86_64/wheel/crick
creating build/bdist.linux-x86_64/wheel/crick/tests
copying build/lib.linux-x86_64-cpython-310/crick/tests/__init__.py -> build/bdist.linux-x86_64/wheel/crick/tests
copying build/lib.linux-x86_64-cpython-310/crick/tests/test_space_saving.py -> build/bdist.linux-x86_64/wheel/crick/tests
copying build/lib.linux-x86_64-cpython-310/crick/tests/test_stats.py -> build/bdist.linux-x86_64/wheel/crick/tests
copying build/lib.linux-x86_64-cpython-310/crick/tests/test_tdigest.py -> build/bdist.linux-x86_64/wheel/crick/tests
copying build/lib.linux-x86_64-cpython-310/crick/common.h -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/space_saving.c -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/space_saving.pyx -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/space_saving_stubs.c -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/stats.c -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/stats.pyx -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/stats_stubs.c -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/tdigest.c -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/tdigest.pyx -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/tdigest_stubs.c -> build/bdist.linux-x86_64/wheel/crick
creating build/bdist.linux-x86_64/wheel/crick/klib
copying build/lib.linux-x86_64-cpython-310/crick/klib/khash.h -> build/bdist.linux-x86_64/wheel/crick/klib
copying build/lib.linux-x86_64-cpython-310/crick/tdigest.cpython-310-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/space_saving.cpython-310-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/crick
copying build/lib.linux-x86_64-cpython-310/crick/stats.cpython-310-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/crick
running install_egg_info
Copying crick.egg-info to build/bdist.linux-x86_64/wheel/crick-0.0.6-py3.10.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/crick-0.0.6.dist-info/WHEEL
creating '/home/tkloczko/rpmbuild/BUILD/crick-0.0.6/dist/.tmp-49y5oj1x/crick-0.0.6-cp310-cp310-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'crick/__init__.py'
adding 'crick/_version.py'
adding 'crick/common.h'
adding 'crick/space_saving.c'
adding 'crick/space_saving.cpython-310-x86_64-linux-gnu.so'
adding 'crick/space_saving.pyx'
adding 'crick/space_saving_stubs.c'
adding 'crick/stats.c'
adding 'crick/stats.cpython-310-x86_64-linux-gnu.so'
adding 'crick/stats.pyx'
adding 'crick/stats_stubs.c'
adding 'crick/tdigest.c'
adding 'crick/tdigest.cpython-310-x86_64-linux-gnu.so'
adding 'crick/tdigest.pyx'
adding 'crick/tdigest_stubs.c'
adding 'crick/klib/khash.h'
adding 'crick/tests/__init__.py'
adding 'crick/tests/test_space_saving.py'
adding 'crick/tests/test_stats.py'
adding 'crick/tests/test_tdigest.py'
adding 'crick-0.0.6.dist-info/LICENSE'
adding 'crick-0.0.6.dist-info/METADATA'
adding 'crick-0.0.6.dist-info/WHEEL'
adding 'crick-0.0.6.dist-info/top_level.txt'
adding 'crick-0.0.6.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built crick-0.0.6-cp310-cp310-linux_x86_64.whl
kloczek commented 3 months ago

Looks like test suite is as well not excluded from generated .whl.

phofl commented 1 month ago

Do you have time to take a look?