-
Notifications
You must be signed in to change notification settings - Fork 52
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
RFE: add handle --user
switch
#214
Comments
I don't understand what you're trying to do at all, but it won't work because rpm isn't going to allow building an rpm package to install things to the |
This procedure which I've sketched is not about rpm used to install/uninstall//upgrade packages but rpmbuild (which is part of the rpm) which is used to build rpm packages. In other word it is about build procedure implemented in rpm spec file(s) to bootstrap completely new set of rpm packages build on top on new/not used yet major python (like transition from python 3.8.x to 3.9.x). |
So I stand by my word, they aren't going to allow you to do that. rpm spec files should NOT be writing to the user home directory, whether as a bootstrap process or not. Bootstrapping usually means building seed packages in a stage X collection of packages, then rebuilding stage X+1 with more features enabled. That means that you'd be building "installer" and "packaging" using an earlier stage that doesn't have the dependencies generator available yet, purely to get to a world where the dependencies generator works. However I'd also suggest that adding dependency metadata is a pretty trivial problem to solve and not worth adding a new bootstrap stage, so... maybe just manually define metadata for "installer" and "packaging", which is easy because... they don't have any dependencies! :) |
because rpm isn't going to allow building an rpm package to install things to the --user home directory So I stand by my word, they aren't going to allow you to do that. rpm spec files should NOT be writing to the user home directory, whether as a bootstrap process or not. Bootstrapping usually means building seed packages in a stage X collection of packages, then rebuilding stage X+1 with more features enabled. That means that you'd be building "installer" and "packaging" using an earlier stage that doesn't have the dependencies generator available yet, purely to get to a world where the dependencies generator works. However I'd also suggest that adding dependency metadata is a pretty trivial problem to solve and not worth adding a new bootstrap stage, so... maybe just manually define metadata for "installer" and "packaging", which is easy because... they don't have any dependencies! :) "Manually adding" is not he same as "generating". What I've described is only one of the possibilities. |
Just found that for some bootstrapping from non-root account on packaging for new major python version it would be good to have handle
--user
switch likepip
provides.In such scenario on bootstrapping when in build env where is installed only python and necessary .whl archives in /usr/share/python-wheels/.
For example on package as rpm package
installer
bootstrapping could be performed by:installer
source treepackaging
archive /usr/share/python-wheels/packaging-*.whl in user sitelib home directory (by default it is ~/.local/lib/python3.<major_ver>/site-packages with pointing $PYTHONPATH to $PWD/srpackaging
modules is installed rpm post install dependencies generator which usespackaging
is able to generate package provides and requires lists.Possible to add such feature? 🤔
The text was updated successfully, but these errors were encountered: