cctbx_project icon indicating copy to clipboard operation
cctbx_project copied to clipboard

python packages permission denied

Open deniskristak opened this issue 1 year ago • 1 comments

Hello, as part of the Easybuild project I am in need to build this software, specifically cctbx-base from source. I am prepared to take care of all dependencies myself. The command I'm trying to run is:

python bootstrap.py --with-python $EBROOTPYTHON/bin/python --builder=cctbx --nproc %(parallel)s -v --build-dir %(builddir)s --skip-base-packages 1

However, the installer seems to ignore the argument to skip base-packages and continues to use the script install_base_packages.py anyway, which leads to an error:

Error: You don't appear to have write access to
the Python site-packages directory:
  b'/apps/gent/RHEL8/haswell-ib/software/Python/3.9.6-GCCcore-11.2.0/lib/python3.9/site-packages'
Installation of Python packages may fail.```

I suppose that the script is trying to install stuff to my python installation directly? How can I avoid it? I want it to build stuff into build-dir, which I could copy where I need it afterwards. This is because I want to build it as standalone module and not part of the Python installation directly.

Thanks!

deniskristak avatar Oct 13 '22 12:10 deniskristak