Closed ceremcem closed 2 years ago
This would install SolveSpace
the GUI application. If you just want to make the Python binding of the solver, run this
mkdir build
cd build
cmakd -DENABLE_GUI=Off -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON ..
make _slvs
Unfortunately, there is no make install
for _slvs
target. You'll have to manually copy slvs.py, _slvs.so
, which is pretty much what you are doing right now.
BTW, why not use pip install py-slvs
? This is the pip package that I maintained, which contains prebuilts for most platform.
Okay, I can keep using the manual approach, as it's approved by you.
why not use
pip install py-slvs
?
I don't quite remember. I made a quick search and I found your post that you announced the py-slvs
package. I think I prepared my build mechanism before that, so, it might be some kind of historical reasons.
I need to install Solvespace backend without
sudo
because I want to keep my wrapper script not requiring root privileges.Former install instructions were:
This still seems to work (as far as I could test) but I prefer using your Makefile. Setting a different install directory is possible:
This creates a bunch of files in
/home/aea/hello
but the files are much more than former instructions and there is no directory generated namedpy_slvs
(orpy_slvs3
), which made me confused even more.So, how can I officially install
solvespace
without root privileges?