python-necpp icon indicating copy to clipboard operation
python-necpp copied to clipboard

Arch Linux fix

Open foco100 opened this issue 4 years ago • 2 comments

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.

  1. On line 17 of build.sh change swig3.0 to swig-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.xz should take care of that.
  2. Personally, I solved the permission errors that come up while running python setup.py install, because running sudo python setup.py install didn'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.

foco100 avatar Feb 19 '21 05:02 foco100

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.

Electro707 avatar Jan 12 '22 05:01 Electro707

On line 17 of build.sh change swig3.0 to swig-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.xz should 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 running sudo python setup.py install didn'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. :)

daniel-ayers avatar Mar 15 '23 09:03 daniel-ayers