Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
4e84ec5d
Commit
4e84ec5d
authored
Aug 05, 2022
by
Sneha Kanekar1
Committed by
Jason Madden
Oct 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ppc64le support
parent
34e349f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
3 deletions
+70
-3
.github/workflows/ci.yml
.github/workflows/ci.yml
+66
-0
scripts/releases/make-manylinux
scripts/releases/make-manylinux
+4
-3
No files found.
.github/workflows/ci.yml
View file @
4e84ec5d
...
...
@@ -141,6 +141,72 @@ jobs:
skip_existing
:
true
packages_dir
:
wheelhouse/
manylinux_ppc64le
:
runs-on
:
ubuntu-latest
# We use a regular Python matrix entry to share as much code as possible.
strategy
:
matrix
:
python-version
:
[
3.9
]
steps
:
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Cache ~/.ccache
uses
:
actions/cache@v2
with
:
path
:
~/.ccache/
key
:
${{ runner.os }}-ccache_manylinux-${{ matrix.python-version }}
-
name
:
Get pip cache dir
id
:
pip-cache
run
:
|
echo "::set-output name=dir::$(pip cache dir)"
-
name
:
pip cache
uses
:
actions/cache@v2
with
:
path
:
${{ steps.pip-cache.outputs.dir }}
key
:
${{ runner.os }}-pip_manylinux_ppc64le-${{ matrix.python-version }}
restore-keys
:
|
${{ runner.os }}-pip-
-
name
:
Update pip
run
:
pip install -U pip
-
name
:
Enable emulation
run
:
|
docker run --rm --privileged hypriot/qemu-register
# This one was seen in pyca/bcrypt. What's the difference?
# (Other than this one not working.)
#run: |
# docker run --rm --privileged multiarch/qemu-user-static:register --reset
-
name
:
Build and test gevent
# Skip the bulk of the tests, running them emulated on arm takes
# forever. Likewise, don't build or even configure c-ares; in the emulated platform
# it takes at least 15 minutes and often much longer.
env
:
DOCKER_IMAGE
:
quay.io/pypa/manylinux2014_ppc64le
GEVENTTEST_SKIP_ALL
:
1
GEVENTSETUP_DISABLE_ARES
:
1
run
:
scripts/releases/make-manylinux
-
name
:
Upload gevent wheels
uses
:
actions/upload-artifact@v2
with
:
path
:
wheelhouse/*whl
name
:
manylinux_ppc64le_wheels.zip
-
name
:
Restore pip cache permissions
run
:
sudo chown -R $(whoami) ${{ steps.pip-cache.outputs.dir }}
-
name
:
Publish package to PyPI
uses
:
pypa/gh-action-pypi-publish@v1.4.1
if
:
github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with
:
user
:
__token__
password
:
${{ secrets.TWINE_PASSWORD }}
skip_existing
:
true
packages_dir
:
wheelhouse/
test
:
runs-on
:
${{ matrix.os }}
strategy
:
...
...
scripts/releases/make-manylinux
View file @
4e84ec5d
...
...
@@ -33,14 +33,15 @@ export BUILD_LIBS=$HOME/.libs
export
CCACHE_DIR
=
"/ccache"
# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches
GEVENT_WARNFLAGS
=
"-Wno-strict-aliasing -Wno-comment -Wno-unused-value -Wno-unused-but-set-variable -Wno-sign-compare -Wno-parentheses -Wno-unused-function -Wno-tautological-compare -Wno-strict-prototypes -Wno-return-type -Wno-misleading-indentation"
OPTIMIZATION_FLAGS
=
"-pipe"
if
[
"
$DOCKER_IMAGE
"
==
"quay.io/pypa/manylinux2014_aarch64"
-a
-n
"
$GITHUB_ACTIONS
"
]
;
then
if
[
"
$DOCKER_IMAGE
"
==
"quay.io/pypa/manylinux2014_aarch64"
-a
-n
"
$GITHUB_ACTIONS
"
]
||
[
"
$DOCKER_IMAGE
"
==
"quay.io/pypa/manylinux2014_ppc64le"
-a
-n
"
$GITHUB_ACTIONS
"
]
;
then
# Compiling with -Ofast is a no-go because of the regression it causes (#1864).
# The default settings have -O3, and adding -Os doesn't help much. So maybe -O1 will.
echo
"Compiling with -O1"
OPTIMIZATION_FLAGS
=
"-pipe -O1"
SLOW_
ARM
=
1
SLOW_
BUILD
=
1
else
echo
"Compiling with -O3"
OPTIMIZATION_FLAGS
=
"-pipe -O3"
...
...
@@ -82,7 +83,7 @@ if [ -d /gevent -a -d /opt/python ]; then
# Some images/archs (specificaly 2014_aarch64) don't have ccache;
# This also seems to have vanished for manylinux_2010 x64/64 after November 30
# 2020 when the OS went EOL and the package repos switched to the "vault"
if
[
-n
"
$SLOW_
ARM
"
]
;
then
if
[
-n
"
$SLOW_
BUILD
"
]
;
then
# This provides access to ccache for the 2014 image
echo
Installing epel
rpm
-Uvh
https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment