-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Install procedure tries to uninstall Cantera-python version installed by system pkg manager #1230
Comments
Thanks for reporting this @band-a-prend! I'll look into it before |
The initial description looks complicated even for me now. So I try to clarify.
|
I tried something similar on Ubuntu 22.04:
Which, while it succeeds, still seems a bit fishy. |
This commands are ran as user and then scons call of pip should check user's site-package directory instead of system/global, isn't it? I don't know the details of how Debian/Ubuntu package manager works but maybe this issue will reproduced if initially install Cantera 2.5.1 from PPA and then Cantera 2.6.0b1 from PPA. Is PPA for Cantera 2.6.0b1 is public available? I'm not sure if it's reproduced while reinstalling of the Cantera 2.6.0b1 for gentoo so need to do additional tests of it with providing logs. |
I realized that this issue could be observed only then reinstalling 2.6.0b1 via source based type of package over early installed cantera version takes place. And doesn't affect the binary packages. I attach the part of gentoo build log with install error while reinstalling 2.6.0b1 over already installed 2.6.0b1: build_and_reinstall_2.6.0_beta1.log The same error occurs on trying gentoo package installation of cantera-2.6.0_beta1 over early installed cantera-2.5.1. @mefuller If it's only gentoo specific issue there is no problem patching for gentoo in place without any upstream changes. |
Just acknowledging that I have read this and will work on the issue: |
This annoying behavior by I think the idea of adding
|
Great thanks! |
As usual I forgot to retest I.e. issue isn't reproduced if install |
@band-a-prend - I think the issue should be fixed for |
@speth |
System information
Problem description
New implemented Cantera-python installation procedure uses
pip install
with--force-reinstall
option that tries to uninstall the Cantera version that was early placed by system package manager into system python site-packages directory. This attempt results in an error as system package manager blocks this attempt.E.g. Gentoo package manager (portage) initially tries to install all files to specified
stage_dir
and then place it to system replacing early installed files if necessary. Thus the attempt to uninstall Cantera-python 2.5.1 files (installed by Gentoo package manager) bypip
is failed as Gentoo package manager blocks such try while installing Cantera-python 2.6.0b1 files into python site-packages under site_dir build directory.Linux distributives that uses similar aproach (e.g. Debian, Ubuntu, Fedora etc) could be affected this issue too.
The quick workaround for distributive maintainers is to patch
interfaces/cython/SConscript
and/orinterfaces/python_minimal/SConscript
files replacing--force-reinstall
substring with--ignore-installed
.Otherwise the conditional check is required within
interfaces/cython/SConscript
andinterfaces/python_minimal/SConscript
to apply--force-reinstall
ifstage_dir
option isn't used or--ignore-installed
forpip install
ifstage_dir
option is specified for Cantera scons build env.The text was updated successfully, but these errors were encountered: