Skip to content

Commit

Permalink
Use global env
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk committed Jun 25, 2023
1 parent 65e9882 commit 781b196
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -38,9 +38,11 @@ jobs:
sudo apt-get update
sudo apt-get install -y \
python2.7 python2.7-dev python2-pip-whl
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
sudo --preserve-env=PYTHONPATH python2.7 -m pip install --upgrade pip setuptools wheel
sudo ln -sf python2.7 /usr/bin/python
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
sudo chown -R $USER /usr/local/lib/python2.7
- name: Verify tag against version
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
Expand Down Expand Up @@ -91,7 +93,7 @@ jobs:
pip install --upgrade pip
pip install --upgrade wheel build
pip install --upgrade flake8 appdirs
pip install --upgrade .
pip install --upgrade --editable .
- name: Sanity checks
run: PWNLIB_NOTERM=1 python -bb -c 'from pwn import *; print(pwnlib.term.term_mode)'
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Expand Up @@ -50,6 +50,9 @@
project = toml.load('pyproject.toml')['project']
compat['install_requires'] = project['dependencies']
compat['name'] = project['name']
if '--user' in sys.argv:
sys.argv.remove('--user')


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

0 comments on commit 781b196

Please sign in to comment.