Using pip 23.0.1 from /home/ubuntu/.local/lib/python3.8/site-packages/pip (python 3.8)
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/ubuntu/BasicTAD
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info
writing /tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-pip-egg-info-pjj2s8ba/vedatad.egg-info/SOURCES.txt'
/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/__init__.py:84: _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)
Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in /home/ubuntu/.local/lib/python3.8/site-packages (from vedatad==1.0.0) (2.4.0)
Requirement already satisfied: imagecorruptions in /home/ubuntu/.local/lib/python3.8/site-packages (from vedatad==1.0.0) (1.1.2)
Requirement already satisfied: opencv-python in /home/ubuntu/.local/lib/python3.8/site-packages (from vedatad==1.0.0) (4.7.0.72)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from vedatad==1.0.0) (5.3.1)
Requirement already satisfied: terminaltables in /home/ubuntu/.local/lib/python3.8/site-packages (from vedatad==1.0.0) (3.1.10)
Requirement already satisfied: torchvision>=0.7.0 in /usr/lib/python3/dist-packages (from vedatad==1.0.0) (0.14.1)
Requirement already satisfied: yapf in /home/ubuntu/.local/lib/python3.8/site-packages (from vedatad==1.0.0) (0.33.0)
Requirement already satisfied: Pillow>=5.4.1 in /usr/lib/python3/dist-packages (from imagecorruptions->vedatad==1.0.0) (7.0.0)
Requirement already satisfied: scipy>=1.2.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from imagecorruptions->vedatad==1.0.0) (1.9.3)
Requirement already satisfied: scikit-image>=0.15 in /usr/lib/python3/dist-packages (from imagecorruptions->vedatad==1.0.0) (0.16.2)
Requirement already satisfied: numpy>=1.16 in /home/ubuntu/.local/lib/python3.8/site-packages (from imagecorruptions->vedatad==1.0.0) (1.23.5)
Requirement already satisfied: tomli>=2.0.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from yapf->vedatad==1.0.0) (2.0.1)
Installing collected packages: vedatad
Running setup.py develop for vedatad
Running command python setup.py develop
running develop
running egg_info
writing vedatad.egg-info/PKG-INFO
writing dependency_links to vedatad.egg-info/dependency_links.txt
writing requirements to vedatad.egg-info/requires.txt
writing top-level names to vedatad.egg-info/top_level.txt
reading manifest file 'vedatad.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'vedatad.egg-info/SOURCES.txt'
running build_ext
building 'vedacore.ops.nms.nms_ext' extension
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cpu
creating /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda
/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/__init__.py:84: _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)
/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
Emitting ninja build file /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] c++ -MMD -MF /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cpu/nms_cpu.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cpu/nms_cpu.cpp -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cpu/nms_cpu.o
c++ -MMD -MF /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cpu/nms_cpu.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cpu/nms_cpu.cpp -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
In file included from /usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
from /usr/lib/python3/dist-packages/torch/include/torch/extension.h:6,
from /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cpu/nms_cpu.cpp:5:
/usr/lib/python3/dist-packages/torch/include/torch/csrc/Exceptions.h:13:10: fatal error: pybind11/pybind11.h: No such file or directory
13 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/4] c++ -MMD -MF /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_cuda.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cuda/nms_cuda.cpp -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_cuda.o
c++ -MMD -MF /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_cuda.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cuda/nms_cuda.cpp -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
In file included from /usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
from /usr/lib/python3/dist-packages/torch/include/torch/extension.h:6,
from /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cuda/nms_cuda.cpp:2:
/usr/lib/python3/dist-packages/torch/include/torch/csrc/Exceptions.h:13:10: fatal error: pybind11/pybind11.h: No such file or directory
13 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[3/4] c++ -MMD -MF /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/nms_ext.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/nms_ext.cpp -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/nms_ext.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/nms_ext.o
c++ -MMD -MF /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/nms_ext.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/nms_ext.cpp -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/nms_ext.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
In file included from /usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
from /usr/lib/python3/dist-packages/torch/include/torch/extension.h:6,
from /home/ubuntu/BasicTAD/vedacore/ops/nms/src/nms_ext.cpp:3:
/usr/lib/python3/dist-packages/torch/include/torch/csrc/Exceptions.h:13:10: fatal error: pybind11/pybind11.h: No such file or directory
13 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[4/4] /usr/bin/nvcc -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cuda/nms_kernel.cu -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_kernel.o
/usr/bin/nvcc -DWITH_CUDA -I/usr/lib/python3/dist-packages/torch/include -I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3/dist-packages/torch/include/TH -I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.8 -c -c /home/ubuntu/BasicTAD/vedacore/ops/nms/src/cuda/nms_kernel.cu -o /home/ubuntu/BasicTAD/build/temp.linux-x86_64-cpython-38/vedacore/ops/nms/src/cuda/nms_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ubuntu/BasicTAD/vedacore/ops/nms/src/cuda/nms_kernel.cu:6:10: fatal error: THC/THC.h: No such file or directory
6 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py", line 1904, in _run_ninja_build
subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/ubuntu/BasicTAD/setup.py", line 117, in <module>
setup(
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/command/develop.py", line 115, in install_for_development
self.run_command('build_ext')
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py", line 845, in build_extensions
build_ext.build_extensions(self)
File "/usr/lib/python3/dist-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/ubuntu/.local/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py", line 660, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py", line 1575, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/usr/lib/python3/dist-packages/torch/utils/cpp_extension.py", line 1920, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/bin/python3 -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/home/ubuntu/BasicTAD/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps --user --prefix=
cwd: /home/ubuntu/BasicTAD/
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.