Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
f6698e60
Commit
f6698e60
authored
1 year ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
override denied userspace installation of packages with Python>=3.11
parent
67b2d8f2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+3
-2
3 additions, 2 deletions
Makefile
README
+3
-0
3 additions, 0 deletions
README
with
6 additions
and
2 deletions
Makefile
+
3
−
2
View file @
f6698e60
...
...
@@ -11,7 +11,7 @@ python-requirements:
@
echo
"+-----------------------------+"
@
echo
"| installing Python modules |"
@
echo
"+-----------------------------+"
if
[
-z
$VIRTUAL_ENV
]
;
then
pip
install
--user
-U
-r
$(
CURDIR
)
/requirements.txt
;
else
pip
install
-U
-r
$(
CURDIR
)
/requirements.txt
;
fi
if
[
-z
$
(
VIRTUAL_ENV
)
]
;
then
pip
install
--user
--break-system-packages
-U
-r
$(
CURDIR
)
/requirements.txt
;
else
pip
install
-U
-r
$(
CURDIR
)
/requirements.txt
;
fi
@
echo
"+-----------------------------+"
@
echo
"| installed Python modules |"
@
echo
"+-----------------------------+"
...
...
@@ -22,7 +22,7 @@ confignator:
@
echo
"| installing confignator Python package |"
@
echo
"+---------------------------------------+"
$(
MAKE
)
build
-C
$(
CURDIR
)
/Tst/confignator
if
[
-z
$VIRTUAL_ENV
]
;
then
pip
install
--user
-U
--force-reinstall
$(
CURDIR
)
/Tst/confignator/dist/
*
.whl
;
else
pip
install
-U
--force-reinstall
$(
CURDIR
)
/Tst/confignator/dist/
*
.whl
;
fi
if
[
-z
$
(
VIRTUAL_ENV
)
]
;
then
pip
install
--user
--break-system-packages
-U
--force-reinstall
$(
CURDIR
)
/Tst/confignator/dist/
*
.whl
;
else
pip
install
-U
--force-reinstall
$(
CURDIR
)
/Tst/confignator/dist/
*
.whl
;
fi
$(
MAKE
)
build-doc
-C
$(
CURDIR
)
/Tst/confignator
@
echo
"+--------------------------------------+"
@
echo
"| installed confignator Python package |"
...
...
@@ -86,3 +86,4 @@ set-start-scripts-permissions:
@
echo
"| setting permissions for the start scripts (execute) |"
@
echo
"+-----------------------------------------------------+"
$(
MAKE
)
all
-C
$(
CURDIR
)
/Tst/
This diff is collapsed.
Click to expand it.
README
+
3
−
0
View file @
f6698e60
...
...
@@ -33,6 +33,9 @@ This file documents the required steps to get the UVIE EGSE software up and runn
'make python-requirements' in the CCS base directory or use 'pip install [--user] -r requirements.txt'.
If using a venv, it must have been created using the --system-site-packages option.
For more details, see requirements.txt
Since Python 3.11, pip --user installs of packages are denied by default to avoid conflicts with
system-managed packages - the recommended solution is to use a venv. Alternatively, installing in
local userspace is still possible by passing the --break-system-packages flag.
# INSTALLATION
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment