-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for building using spack #38
Comments
Sure, I can give it a try: creating the main package is easy, what will be a bit "challenging" (but helpful to learn) is how to include instructions to include and install, e.g., embree or cgal dependencies. |
Ok, here is a start of a spack package which should go in |
Ok, it was really easy (just tell spack that On the other hand, one would also need to update the Have a look if it works for you (then we can "decorate it" with infos, etc), else we can iterate and correct what's missing! ;) |
(clearly if we want to use |
Thanks for looking into this. How do I install your package? Feel free to just point me to relevant part of the documentation if you prefer... For getting the right version of CGAL installed, it seems like |
Do you have
The installation works with my modified package (which I edited the way you point out - that Python file IS the "package" - which is the same as tracking down the file and opening it with whatever |
OK, before using your package, I wanted to get this working on my own so I could understand how it works a bit better. I had to do something like this: # get spack
git clone -c feature.manyFiles=true https://github.com/spack/spack.git
# make spack active
. spack/share/spack/setup-env.sh
# make an "environment" for the radiosity project
spack env create radiosity
spack env activate radiosity
spack edit cgal
# ... make modifications so that CGAL 5.3.1 is installed. Just need to:
# - replace the link to latest version with the one for 5.3.1 from GitHub
# - update the version string
# - update the SHA256 string ...
# install and load everything
spack install gcc cgal boost python py-pip py-cython
spack load gcc cgal boost python py-pip py-cython
# install python-flux
git clone https://github.com/sampotter/python-flux
cd python-flux
python setup.py install --user However, in order to get the final line to work, I had to update setup.py and manually pass the include directories for spack's cgal and boost. To do this, I had to find where they were using e.g. [sfp8544@snappy1 python-flux]$ time spack location -i cgal
/home/sfp8544/spack/opt/spack/linux-centos7-ivybridge/gcc-9.1.0/cgal-5.3.1-negdj6dxxmey2o2rb4fkxugge77fxbsj
real 0m1.864s
user 0m1.001s
sys 0m0.235s I have no idea what spack is doing, but nearly two seconds to find a directory??? Anyway, because I didn't want
to the Some questions:
|
What you are doing looks correct to me (at least it's the same I did). I just manually added the include paths to the setup.py (which is faster), but your solution is more flexible. So no, I still don't know how to modify the module files created by spack so that the "include" dir gets automatically added to the path (only works for the lib dirs, somehow).
Else, is that command equally slow on your laptop? Sometimes our cluster is slow when running any command for the first time (i/o issues in the structure, I guess). Ah, and I didn't use my own package to install python-flux, just python+tk, cgal and boost, the same way you did: it should work.
|
It would be helpful to add some instructions for how to compile and install this library using spack. @steo85it pinging you since you just had some luck with this. I'm going to use spack on the clusters at work once I start running some larger tests for the paper (most likely this week).
The text was updated successfully, but these errors were encountered: