Skip to content

Commit b9cc118

Browse files
committed
Clean up CI workflow
1 parent 1f63615 commit b9cc118

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
sudo apt-get update
3939
sudo apt-get install -y \
4040
python2.7 python2.7-dev python2-pip-whl
41-
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
42-
sudo --preserve-env=PYTHONPATH python2.7 -m pip install --upgrade pip setuptools wheel
4341
sudo ln -sf python2.7 /usr/bin/python
42+
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
43+
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
44+
sudo chown -R $USER /usr/local/lib/python2.7
45+
4446
4547
- name: Verify tag against version
4648
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
@@ -60,7 +62,8 @@ jobs:
6062
sudo apt-get update
6163
sudo apt-get install -y --no-install-recommends -o Acquire::Retries=3 \
6264
ash bash-static dash ksh mksh zsh \
63-
pandoc gdb gdbserver socat \
65+
python3-rpyc \
66+
gdb gdbserver socat \
6467
binutils-multiarch qemu-user-static \
6568
binutils-aarch64-linux-gnu \
6669
binutils-arm-linux-gnueabihf \
@@ -73,11 +76,6 @@ jobs:
7376
libc6-dbg \
7477
elfutils
7578
76-
- name: Install RPyC for GDB
77-
run: |
78-
sudo apt-get install -y python3-pip
79-
/usr/bin/python3 -m pip install rpyc
80-
8179
- name: Testing Corefiles
8280
run: |
8381
ulimit -a
@@ -104,6 +102,7 @@ jobs:
104102
run: pip install -r docs/requirements.txt
105103

106104
- name: Manually install non-broken Unicorn
105+
if: matrix.python_version == '2.7'
107106
run: pip install unicorn==2.0.0rc7
108107

109108
- name: Disable yama ptrace_scope

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
project = toml.load('pyproject.toml')['project']
5151
compat['install_requires'] = project['dependencies']
5252
compat['name'] = project['name']
53+
if '--user' in sys.argv:
54+
sys.argv.remove('--user')
55+
5356

5457
# Check that the user has installed the Python development headers
5558
PythonH = os.path.join(get_python_inc(), 'Python.h')

0 commit comments

Comments
 (0)