Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
graalpython/scripts/repack-bundled-wheels.sh at master · mjschnie/graalpython · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mjschnie
graalpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
graalpython
/
scripts
/
repack-bundled-wheels.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
81 lines (76 loc) · 3.05 KB
master
Breadcrumbs
graalpython
/
scripts
/
repack-bundled-wheels.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
81 lines (76 loc) · 3.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!
/bin/bash
#
Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
#
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
#
The Universal Permissive License (UPL), Version 1.0
#
#
Subject to the condition set forth below, permission is hereby granted to any
#
person obtaining a copy of this software, associated documentation and/or
#
data (collectively the "Software"), free of charge and under any and all
#
copyright rights in the Software, and any and all patent rights owned or
#
freely licensable by each licensor hereunder covering either (i) the
#
unmodified Software as contributed to or provided by such licensor, or (ii)
#
the Larger Works (as defined below), to deal in both
#
#
(a) the Software, and
#
#
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
#
one is included with the Software each a "Larger Work" to which the Software
#
is contributed by such licensors),
#
#
without restriction, including without limitation the rights to copy, create
#
derivative works of, display, perform, and distribute the Software and make,
#
use, sell, offer for sale, import, export, have made, and have sold the
#
Software and the Larger Work(s), and to sublicense the foregoing rights on
#
either these or other terms.
#
#
This license is subject to the following condition:
#
#
The above copyright notice and either this complete permission notice or at a
#
minimum a reference to the UPL must be included in all copies or substantial
#
portions of the Software.
#
#
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#
SOFTWARE.
set
-eo pipefail
GIT_DIR=
"
$(
realpath
"
$(
dirname
"
$0
"
)
/..
"
)
"
BUNDLED_DIR=
"
graalpython/lib-python/3/ensurepip/_bundled
"
check_file
() {
if
[
!
-f
"
$1
"
]
;
then
echo
"
File
$1
does not exist
"
exit
1
fi
}
missing_python_import
() {
echo
"
Error when getting the vanilla wheel from the python-import branch
"
echo
"
Do you have local branch named 'python-import'?
"
echo
"
If not, you can use: git fetch origin python-import:python-import
"
exit
1
}
patch_wheel
() {
cd
"
$GIT_DIR
"
local
name=
"
$1
"
local
patch=
"
$2
"
local
wheel=
"
$(
echo
$BUNDLED_DIR
/
$name
-
*
.whl
)
"
check_file
"
$patch
"
check_file
"
$wheel
"
local
tmpdir=
"
$(
basename -s
'
.whl
'
"
$wheel
"
)
"
rm -rf
"
$tmpdir
"
mkdir
"
$tmpdir
"
git show
"
python-import:
$wheel
"
>
tmp.whl
||
missing_python_import
cd
"
$tmpdir
"
unzip -q ../tmp.whl
rm ../tmp.whl
patch --quiet -p1
<
"
../
$patch
"
touch
"
$(
echo
$name
-
*
.dist-info
)
/GRAALPY_MARKER
"
rm
"
../
$wheel
"
zip -qr
"
../
$wheel
"
.
cd
..
rm -rf
"
$tmpdir
"
}
patch_wheel pip graalpython/lib-graalpython/patches/pip-24.3.1.patch
You can’t perform that action at this time.