I've been working on installing PyNIO from source on Ubuntu 18.04. I'm able to install the package, with the exception of the Nio.pth file. The result is that, when I try to import the package, I get
ImportError: No module named Nio
After some experimentation I found that distutils doesn't respect absolute file paths for data_files in the setup function. I was able to fix this by replacing the absolute path with a relative path:
I tested this out on Ubuntu 18.04 with both python 2 and 3, and both pip and python setup.py install. In each case, only the relative path copied Nio.pth to the correct location.
I've been working on installing PyNIO from source on Ubuntu 18.04. I'm able to install the package, with the exception of the Nio.pth file. The result is that, when I try to import the package, I get
After some experimentation I found that distutils doesn't respect absolute file paths for
data_files
in thesetup
function. I was able to fix this by replacing the absolute path with a relative path:I tested this out on Ubuntu 18.04 with both python 2 and 3, and both
pip
andpython setup.py install
. In each case, only the relative path copied Nio.pth to the correct location.