0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 13:06:15 +00:00
termux-packages/disabled-packages/pypanel/PyPanel-2.4_setup.py.patch
Tee KOBAYASHI 235c11e73e pypanel, python2-{six,xlib}: Disabled
due to run-time dependency on python2.

Python 2 is long since EOL and has a bunch of known vulnerabilities now.
It should not be used other than in some restricted cases such as build
dependency of pypy{,3}.
2023-02-12 04:18:33 +00:00

35 lines
1.2 KiB
Diff

diff -uNr PyPanel-2.4/setup.py PyPanel-2.4.mod/setup.py
--- PyPanel-2.4/setup.py 2005-06-23 04:48:49.000000000 +0300
+++ PyPanel-2.4.mod/setup.py 2017-12-12 17:52:16.997058670 +0200
@@ -3,10 +3,10 @@
from distutils import sysconfig
# Full paths to imlib2-config and freetype-config, adjust as needed -
-configs = ["/usr/bin/freetype-config", "/usr/bin/imlib2-config"]
+configs = ["@TERMUX_PREFIX@/bin/freetype-config", "@TERMUX_PREFIX@/bin/imlib2-config"]
# Adjust or add any additional include directories here -
-idirs = ["/usr/X11R6/include"]
+idirs = ["@TERMUX_PREFIX@/include"]
# Add any additional library directories here -
ldirs = []
@@ -15,7 +15,7 @@
cargs = ["-Wall"]
# Full path to libImlib2 shared library
-imlib2 = "/usr/lib/libImlib2.so.1"
+imlib2 = "@TERMUX_PREFIX@/lib/libImlib2.so.1"
#------------------------------------------------------------------------------
# The rest of this script should not need to be modified!
@@ -85,7 +85,7 @@
if len(sys.argv) > 1 and sys.argv[1] != "sdist":
for line in fileinput.input(["pypanel"], inplace=1):
if fileinput.isfirstline():
- print "#!%s -OO" % sys.executable
+ print "#!%s" % sys.executable
else:
print line,