Skip to content
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

python packages permission denied #803

Open
deniskristak opened this issue Oct 13, 2022 · 1 comment
Open

python packages permission denied #803

deniskristak opened this issue Oct 13, 2022 · 1 comment

Comments

@deniskristak
Copy link

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!

@bkpoon
Copy link
Member

bkpoon commented Oct 25, 2022

By default, the bootstrap.py script will also try to build dependencies. You can add the hot update build commands after bootstrap.py in your command. Also, if you have all your dependencies in a $EBROOTPYTHON, you can use the --use-conda $EBROOTPYTHON to tell the build to find dependencies in $EBROOTPYTHON (essentially, adds $EBROOTPYTHON/include for headers and $EBROOTPYTHON/lib for libraries). The --use-conda flag was for building using dependencies from conda, but it is not too specific to a conda environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants