Arch Linux fix
It seems like the build.sh script it is specifically designed for Debian-based distros. Also, there are some permission errors that come up. Thus, there are some minor changes that one needs to take into consideration while running this library on Arch-based distros.
- On line 17 of
build.shchangeswig3.0toswig-3. Also, if you don't already have swig3 installed, remember to install it from the archive, as you specifically need this version.sudo pacman -U https://archive.archlinux.org/packages/s/swig3/swig3-3.0.12-3-x86_64.pkg.tar.xzshould take care of that. - Personally, I solved the permission errors that come up while running
python setup.py install, because runningsudo python setup.py installdidn't work for me, by using pyenv. Particularly, I am using python 3.6.0, but perhaps there is another version that works. (Just as a reminder, remember to install the dependencies for PyNEC, if you weren't already using pyenv)
I believe those are some of the major "patches" that I implemented, but feel free to add something else if it's needed for other systems.
Thanks for commenting this. Helped me build it and making an AUR entry. Speaking of which, for anyone who wants to install this package (the PyNEC package) thru the AUR I created a python-pynec-git PKGBUILD.
On line 17 of
build.shchangeswig3.0toswig-3. Also, if you don't already have swig3 installed, remember to install it from the archive, as you specifically need this version.sudo pacman -U https://archive.archlinux.org/packages/s/swig3/swig3-3.0.12-3-x86_64.pkg.tar.xzshould take care of that.
It built just fine for me (Fedora 37) using the standard swig, currently version 4, once I changed the name of the executable in build.sh from swig3.0 to just swig.
Personally, I solved the permission errors that come up while running
python setup.py install, because runningsudo python setup.py installdidn't work for me, by using pyenv. Particularly, I am using python 3.6.0, but perhaps there is another version that works. (Just as a reminder, remember to install the dependencies for PyNEC, if you weren't already using pyenv)
Absolutely right, it should be installed in a virtual environment (in modern Python, using venv) rather than swinging the sudo hammer. :)