Skip to content

Commit

Permalink
Update setuptools for python 3.12 compat (#185)
Browse files Browse the repository at this point in the history
* Unpin setuptools for python 3.12 compat

* Actually pin it to >=v66.1.0
  • Loading branch information
twizmwazin authored Nov 13, 2023
1 parent be6b9fc commit 86fa9ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $extra_requires = @{

$build_deps = $(
"pip"
"setuptools==64.0.1"
"setuptools>=66.1.0"
"wheel"
"cffi"
"unicorn==2.0.1.post1"
Expand Down
9 changes: 4 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ then
fi


DEBS=${DEBS-python3-pip python3-dev python3-setuptools build-essential libxml2-dev libxslt1-dev git libffi-dev cmake libreadline-dev libtool debootstrap debian-archive-keyring libglib2.0-dev libpixman-1-dev qtdeclarative5-dev binutils-multiarch nasm libssl-dev}
DEBS=${DEBS-python3-pip python3-dev build-essential libxml2-dev libxslt1-dev git libffi-dev cmake libreadline-dev libtool debootstrap debian-archive-keyring libglib2.0-dev libpixman-1-dev qtdeclarative5-dev binutils-multiarch nasm libssl-dev}
HOMEBREW_DEBS=${HOMEBREW_DEBS-python3 libxml2 libxslt libffi cmake libtool glib binutils nasm patchelf}
ARCHDEBS=${ARCHDEBS-python-pip libxml2 libxslt git libffi cmake readline libtool debootstrap glib2 pixman qt5-base binutils nasm}
ARCHCOMDEBS=${ARCHCOMDEBS}
RPMS=${RPMS-gcc gcc-c++ make python3-pip python3-devel python3-setuptools libxml2-devel libxslt-devel git libffi-devel cmake readline-devel libtool debootstrap debian-keyring glib2-devel pixman-devel qt5-qtdeclarative-devel binutils-x86_64-linux-gnu nasm openssl-devel}
OPENSUSE_RPMS=${OPENSUSE_RPMS-gcc gcc-c++ make python3-pip python3-devel python3-setuptools libxml2-devel libxslt-devel git libffi-devel cmake readline-devel libtool debootstrap glib2-devel libpixman-1-0-devel libQt5Core5 libqt5-qtdeclarative-devel binutils nasm libopenssl-devel}
RPMS=${RPMS-gcc gcc-c++ make python3-pip python3-devel libxml2-devel libxslt-devel git libffi-devel cmake readline-devel libtool debootstrap debian-keyring glib2-devel pixman-devel qt5-qtdeclarative-devel binutils-x86_64-linux-gnu nasm openssl-devel}
OPENSUSE_RPMS=${OPENSUSE_RPMS-gcc gcc-c++ make python3-pip python3-devel libxml2-devel libxslt-devel git libffi-devel cmake readline-devel libtool debootstrap glib2-devel libpixman-1-0-devel libQt5Core5 libqt5-qtdeclarative-devel binutils nasm libopenssl-devel}
REPOS=${REPOS-archinfo pyvex cle claripy ailment angr angr-management binaries}
REPOS_CPYTHON=${REPOS_CPYTHON-angr-management}
# archr is Linux only because of shellphish-qemu dependency
Expand Down Expand Up @@ -304,7 +304,6 @@ then
workon $ANGR_VENV || error "Unable to activate the virtual environment."

# older versions of pip will fail to process the --find-links arg silently
# setuptools<64.0.1 is needed for editable installs for now, see angr/angr#3487
pip3 install -U 'pip>=20.0.2'
fi

Expand All @@ -313,7 +312,7 @@ implementation=$(python -c "import sys; print(sys.implementation.name)")
if [ "$implementation" == "cpython" ]; then REPOS="${REPOS} $REPOS_CPYTHON"; fi

# Install build dependencies until build isolation can be enabled
pip install -U pip "setuptools==64.0.1" wheel cffi unicorn==2.0.1.post1 cmake ninja
pip install -U pip "setuptools>=66.1.0" wheel cffi unicorn==2.0.1.post1 cmake ninja

function try_remote
{
Expand Down

0 comments on commit 86fa9ac

Please sign in to comment.