Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
alpine
aports
Commits
40d10fdd
Commit
40d10fdd
authored
2 years ago
by
alice
Browse files
Options
Downloads
Patches
Plain Diff
main/python3: add system site-packages guard against pip installs
supported by pip 23
parent
478728f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/python3/APKBUILD
+7
-1
7 additions, 1 deletion
main/python3/APKBUILD
main/python3/externally-managed
+9
-0
9 additions, 0 deletions
main/python3/externally-managed
with
16 additions
and
1 deletion
main/python3/APKBUILD
+
7
−
1
View file @
40d10fdd
...
@@ -4,7 +4,7 @@ pkgname=python3
...
@@ -4,7 +4,7 @@ pkgname=python3
# the python3-tkinter's pkgver needs to be synchronized with this.
# the python3-tkinter's pkgver needs to be synchronized with this.
pkgver
=
3.11.1
pkgver
=
3.11.1
_basever
=
"
${
pkgver
%.*
}
"
_basever
=
"
${
pkgver
%.*
}
"
pkgrel
=
2
pkgrel
=
3
pkgdesc
=
"A high-level scripting language"
pkgdesc
=
"A high-level scripting language"
url
=
"https://www.python.org/"
url
=
"https://www.python.org/"
arch
=
"all"
arch
=
"all"
...
@@ -37,6 +37,7 @@ makedepends="
...
@@ -37,6 +37,7 @@ makedepends="
source
=
"https://www.python.org/ftp/python/
$pkgver
/Python-
$pkgver
.tar.xz
source
=
"https://www.python.org/ftp/python/
$pkgver
/Python-
$pkgver
.tar.xz
fix-xattrs-glibc.patch
fix-xattrs-glibc.patch
musl-find_library.patch
musl-find_library.patch
externally-managed
"
"
options
=
"net"
# Required for tests
options
=
"net"
# Required for tests
builddir
=
"
$srcdir
/Python-
$pkgver
"
builddir
=
"
$srcdir
/Python-
$pkgver
"
...
@@ -175,6 +176,10 @@ package() {
...
@@ -175,6 +176,10 @@ package() {
make
-j1
DESTDIR
=
"
$pkgdir
"
EXTRA_CFLAGS
=
"
$CFLAGS
"
install
maninstall
make
-j1
DESTDIR
=
"
$pkgdir
"
EXTRA_CFLAGS
=
"
$CFLAGS
"
install
maninstall
install
-Dm644
LICENSE
"
$pkgdir
"
/usr/share/licenses/
$pkgname
/LICENSE
install
-Dm644
LICENSE
"
$pkgdir
"
/usr/share/licenses/
$pkgname
/LICENSE
local
pyver
=
"
${
pkgver
%.*
}
"
install
-Dm644
"
$srcdir
"
/externally-managed
\
"
$pkgdir
"
/usr/lib/python
$pyver
/EXTERNALLY-MANAGED
# those are provided by python3-tkinter
# those are provided by python3-tkinter
rm
-r
"
$pkgdir
"
/usr/bin/idle
*
"
$pkgdir
"
/usr/lib/python
*
/idlelib
\
rm
-r
"
$pkgdir
"
/usr/bin/idle
*
"
$pkgdir
"
/usr/lib/python
*
/idlelib
\
"
$pkgdir
"
/usr/lib/python
*
/tkinter
"
$pkgdir
"
/usr/lib/python
*
/tkinter
...
@@ -215,4 +220,5 @@ sha512sums="
...
@@ -215,4 +220,5 @@ sha512sums="
5edd70c881e083c96199c60471f18f9ebc4c97a2d45dc66f89e16d7c3638d8a5d2cbf2e84b1be3d7f1178ce9f7fa4197884385c1ee3618ff66a538f872f318ed Python-3.11.1.tar.xz
5edd70c881e083c96199c60471f18f9ebc4c97a2d45dc66f89e16d7c3638d8a5d2cbf2e84b1be3d7f1178ce9f7fa4197884385c1ee3618ff66a538f872f318ed Python-3.11.1.tar.xz
fe123dd871f7a3fa868c499a957b94f1d815a1e1de964aaff1116c579defd4d9d1e9b7eb418cf114b169b97426ed603bf4b1e61b45ec483df06abe988c6a30ee fix-xattrs-glibc.patch
fe123dd871f7a3fa868c499a957b94f1d815a1e1de964aaff1116c579defd4d9d1e9b7eb418cf114b169b97426ed603bf4b1e61b45ec483df06abe988c6a30ee fix-xattrs-glibc.patch
ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch
ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch
af687985b29405b00d645034d33691b9717e4c59a1d13e711ca044575667013f7fd6849f293ada69769456e287eb0bfd362f6aabd307d59c2e276680a70b19da externally-managed
"
"
This diff is collapsed.
Click to expand it.
main/python3/externally-managed
0 → 100644
+
9
−
0
View file @
40d10fdd
[externally-managed]
Error=
The system-wide Python installation in Alpine is managed
by using the system package manager (apk).
It appears you are installing to this system-wide location using
a different package manager. Please use a virtualenv instead:
python3 -m venv /path/to/venv
. /path/to/venv/bin/activate
pip install mypackage
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
6c2a300f
·
1 year ago
mentioned in commit
6c2a300f
mentioned in commit 6c2a300f6787544f3194e7f6cc19058baf9b7419
Toggle commit list
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