$ python -m pip install --upgrade pymemtrace
Collecting pymemtrace
Downloading pymemtrace-0.1.4.tar.gz (375 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 375.7/375.7 kB 18.6 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
...
Building wheels for collected packages: pymemtrac
Building wheel for pymemtrace (setup.py): started
Building wheel for pymemtrace (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [153 lines of output]
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/pymemtrace
Running setup.py clean for pymemtrace
copying pymemtrace/redirect_stdout.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/trace_malloc.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/debug_malloc_stats.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/parse_dtrace_output.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/__init__.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/process.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
creating build/lib.linux-x86_64-cpython-311/tests
copying tests/test_cMemLeak.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_process.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_debug_malloc_stats.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/_test_redirect_stdout.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_settrace.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_trace_malloc.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/__init__.py -> build/lib.linux-x86_64-cpython-311/tests
creating build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_cPyMemTrace.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_memory_exercise.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_process.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_debug_malloc_stats.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_dtrace.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_trace_malloc.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/__init__.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/example.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
running egg_info
writing pymemtrace.egg-info/PKG-INFO
writing dependency_links to pymemtrace.egg-info/dependency_links.txt
writing requirements to pymemtrace.egg-info/requires.txt
writing top-level names to pymemtrace.egg-info/top_level.txt
reading manifest file 'pymemtrace.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'pymemtrace.egg-info/SOURCES.txt'
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pymemtrace.src.c' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'pymemtrace.src.c' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'pymemtrace.src.c' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'pymemtrace.src.c' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pymemtrace.src.cpy' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'pymemtrace.src.cpy' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'pymemtrace.src.cpy' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'pymemtrace.src.cpy' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pymemtrace.src.include' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'pymemtrace.src.include' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'pymemtrace.src.include' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'pymemtrace.src.include' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src/c
copying pymemtrace/src/c/get_rss.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/c
copying pymemtrace/src/c/pymemtrace_util.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/c
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
copying pymemtrace/src/cpy/cCustom.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
copying pymemtrace/src/cpy/cMemLeak.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
copying pymemtrace/src/cpy/cPyMemTrace.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src/include
copying pymemtrace/src/include/get_rss.h -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/include
copying pymemtrace/src/include/pymemtrace_util.h -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/include
running build_ext
building 'pymemtrace.custom' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/pymemtrace
creating build/temp.linux-x86_64-cpython-311/pymemtrace/src
creating build/temp.linux-x86_64-cpython-311/pymemtrace/src/cpy
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -I/opt/hostedtoolcache/Python/3.11.2/x64/include/python3.11 -c pymemtrace/src/cpy/cCustom.c -o build/temp.linux-x86_64-cpython-311/pymemtrace/src/cpy/cCustom.o -Wall -Wextra -Werror -Wfatal-errors -Wpedantic -std=c99 -Wno-cast-function-type -O3 -UDEBUG -DNDEBUG
gcc -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.2/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.2/x64/lib build/temp.linux-x86_64-cpython-311/pymemtrace/src/cpy/cCustom.o -L/tmp/pip-install-u095os7p/pymemtrace_80284ee589ce4595b5c8d95e6bafbcbc -L/opt/hostedtoolcache/Python/3.11.2/x64/lib -o build/lib.linux-x86_64-cpython-311/pymemtrace/custom.cpython-311-x86_64-linux-gnu.so
building 'pymemtrace.cPyMemTrace' extension
creating build/temp.linux-x86_64-cpython-311/pymemtrace/src/c
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -Ipymemtrace/src/include -I/opt/hostedtoolcache/Python/3.11.2/x64/include/python3.11 -c pymemtrace/src/c/get_rss.c -o build/temp.linux-x86_64-cpython-311/pymemtrace/src/c/get_rss.o -Wall -Wextra -Werror -Wfatal-errors -Wpedantic -std=c99 -Wno-cast-function-type -O3 -UDEBUG -DNDEBUG
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -Ipymemtrace/src/include -I/opt/hostedtoolcache/Python/3.11.2/x64/include/python3.11 -c pymemtrace/src/c/pymemtrace_util.c -o build/temp.linux-x86_64-cpython-311/pymemtrace/src/c/pymemtrace_util.o -Wall -Wextra -Werror -Wfatal-errors -Wpedantic -std=c99 -Wno-cast-function-type -O3 -UDEBUG -DNDEBUG
pymemtrace/src/c/pymemtrace_util.c: In function ‘create_filename’:
pymemtrace/src/c/pymemtrace_util.c:18:5: error: implicit declaration of function ‘gmtime_r’; did you mean ‘gmtime’? [-Werror=implicit-function-declaration]
18 | gmtime_r(&t, &now);
| ^~~~~~~~
| gmtime
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pymemtrace
Failed to build pymemtrace
Installing collected packages: pymemtrace
Running setup.py install for pymemtrace: started
Running setup.py install for pymemtrace: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for pymemtrace did not run successfully.
│ exit code: 1
╰─> [155 lines of output]
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
dist.fetch_build_eggs(dist.setup_requires)
running install
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/redirect_stdout.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/trace_malloc.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/debug_malloc_stats.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/parse_dtrace_output.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/__init__.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
copying pymemtrace/process.py -> build/lib.linux-x86_64-cpython-311/pymemtrace
creating build/lib.linux-x86_64-cpython-311/tests
copying tests/test_cMemLeak.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_process.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_debug_malloc_stats.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/_test_redirect_stdout.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_settrace.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/test_trace_malloc.py -> build/lib.linux-x86_64-cpython-311/tests
copying tests/__init__.py -> build/lib.linux-x86_64-cpython-311/tests
creating build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_cPyMemTrace.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_memory_exercise.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_process.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_debug_malloc_stats.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_dtrace.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/ex_trace_malloc.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/__init__.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
copying pymemtrace/examples/example.py -> build/lib.linux-x86_64-cpython-311/pymemtrace/examples
running egg_info
writing pymemtrace.egg-info/PKG-INFO
writing dependency_links to pymemtrace.egg-info/dependency_links.txt
writing requirements to pymemtrace.egg-info/requires.txt
writing top-level names to pymemtrace.egg-info/top_level.txt
reading manifest file 'pymemtrace.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'pymemtrace.egg-info/SOURCES.txt'
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pymemtrace.src.c' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'pymemtrace.src.c' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'pymemtrace.src.c' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'pymemtrace.src.c' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pymemtrace.src.cpy' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'pymemtrace.src.cpy' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'pymemtrace.src.cpy' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'pymemtrace.src.cpy' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'pymemtrace.src.include' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'pymemtrace.src.include' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'pymemtrace.src.include' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'pymemtrace.src.include' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src/c
copying pymemtrace/src/c/get_rss.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/c
copying pymemtrace/src/c/pymemtrace_util.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/c
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
copying pymemtrace/src/cpy/cCustom.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
copying pymemtrace/src/cpy/cMemLeak.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
copying pymemtrace/src/cpy/cPyMemTrace.c -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/cpy
creating build/lib.linux-x86_64-cpython-311/pymemtrace/src/include
copying pymemtrace/src/include/get_rss.h -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/include
copying pymemtrace/src/include/pymemtrace_util.h -> build/lib.linux-x86_64-cpython-311/pymemtrace/src/include
running build_ext
building 'pymemtrace.custom' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/pymemtrace
creating build/temp.linux-x86_64-cpython-311/pymemtrace/src
creating build/temp.linux-x86_64-cpython-311/pymemtrace/src/cpy
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -I/opt/hostedtoolcache/Python/3.11.2/x64/include/python3.11 -c pymemtrace/src/cpy/cCustom.c -o build/temp.linux-x86_64-cpython-311/pymemtrace/src/cpy/cCustom.o -Wall -Wextra -Werror -Wfatal-errors -Wpedantic -std=c99 -Wno-cast-function-type -O3 -UDEBUG -DNDEBUG
gcc -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.2/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.2/x64/lib build/temp.linux-x86_64-cpython-311/pymemtrace/src/cpy/cCustom.o -L/tmp/pip-install-u095os7p/pymemtrace_80284ee589ce4595b5c8d95e6bafbcbc -L/opt/hostedtoolcache/Python/3.11.2/x64/lib -o build/lib.linux-x86_64-cpython-311/pymemtrace/custom.cpython-311-x86_64-linux-gnu.so
building 'pymemtrace.cPyMemTrace' extension
creating build/temp.linux-x86_64-cpython-311/pymemtrace/src/c
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -Ipymemtrace/src/include -I/opt/hostedtoolcache/Python/3.11.2/x64/include/python3.11 -c pymemtrace/src/c/get_rss.c -o build/temp.linux-x86_64-cpython-311/pymemtrace/src/c/get_rss.o -Wall -Wextra -Werror -Wfatal-errors -Wpedantic -std=c99 -Wno-cast-function-type -O3 -UDEBUG -DNDEBUG
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -Ipymemtrace/src/include -I/opt/hostedtoolcache/Python/3.11.2/x64/include/python3.11 -c pymemtrace/src/c/pymemtrace_util.c -o build/temp.linux-x86_64-cpython-311/pymemtrace/src/c/pymemtrace_util.o -Wall -Wextra -Werror -Wfatal-errors -Wpedantic -std=c99 -Wno-cast-function-type -O3 -UDEBUG -DNDEBUG
pymemtrace/src/c/pymemtrace_util.c: In function ‘create_filename’:
pymemtrace/src/c/pymemtrace_util.c:18:5: error: implicit declaration of function ‘gmtime_r’; did you mean ‘gmtime’? [-Werror=implicit-function-declaration]
18 | gmtime_r(&t, &now);
| ^~~~~~~~
| gmtime
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure