Setuptools

Surprised I haven’t ran into this sooner in my life writing software. Finally looked into this as I was trying to debug why my ./compile_with_cuda.sh wasn’t installing properly

  • Last time I ran this command on my Jetson TX2, everything was working just fine

distutils vs. setuptools?

Distutils is part of Python’s standard library - limited functionality for package distribution. Setuptools is a third-party library - extended features and more actively maintained.

Resources

My mind is really getting brainf-cked. When you install packages in python through pip, and you do which pip, you know exactly where that package is getting instead.

However, if you do python setup.py install, is it supposed to put it in the local folder, or is it supposed to put it at the global package level?

  • I guess when I tried this before and didn’t run into the issue, it put it at the global package level