mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
Transition from setup.py to pyproject.toml
This commit is contained in:
@@ -25,7 +25,7 @@ $CC $CPPFLAGS $CFLAGS $LDFLAGS -L$PREFIX/lib `python3-config --cflags --ldflags
|
||||
~/gtk-mac-bundler/examples/python-launcher.c
|
||||
|
||||
echo "Installing Zenmap to local system"
|
||||
python3 setup.py install vanilla --prefix "$PREFIX"
|
||||
python3 -m pip install --ignore-installed --target "$PREFIX/lib/python-3.11/site-packages" .
|
||||
|
||||
echo "Generating dependencies"
|
||||
# Have to run this with ~/gtk/inst/python3 or deps have wrong paths
|
||||
@@ -79,8 +79,7 @@ python -m compileall "$PYTHONLIB"/site-packages #|| true
|
||||
echo "Stripping unoptimized Python libraries"
|
||||
|
||||
echo "Building using setuptools"
|
||||
python3 setup.py build --executable "/usr/bin/env python3"
|
||||
python3 setup.py install vanilla --prefix "$BASE/Resources"
|
||||
python3 -m pip install --ignore-installed --target "$BASE/Resources/lib/python-3.11/site-packages" .
|
||||
|
||||
echo "Renaming main Zenmap executable."
|
||||
mv $BASE/MacOS/$APP_NAME $BASE/MacOS/zenmap.bin
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||
<!DOCTYPE app-bundle [
|
||||
<!ENTITY PYVER "3.10">
|
||||
<!ENTITY PYVER "3.11">
|
||||
<!ENTITY pyreqs SYSTEM "pyreqs.xml">
|
||||
]>
|
||||
<app-bundle>
|
||||
|
||||
@@ -25,8 +25,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
|
||||
package() {
|
||||
cd "${NMAP_DIR}/zenmap"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
#${MINGW_PREFIX}/bin/python -m pip build
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python setup.py install vanilla --prefix=${MINGW_PREFIX} --root="${pkgdir}" --optimize=1
|
||||
${MINGW_PREFIX}/bin/python -m pip install --prefix=${MINGW_PREFIX} --root="${pkgdir}" --optimize=1
|
||||
install -Dm644 install_scripts/unix/zenmap.desktop "${pkgdir}${MINGW_PREFIX}/share/applications/zenmap.desktop"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user