HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/textproc/py-sphinx_numfig/files/patch-setup.py
--- setup.py.orig	2012-10-08 16:34:53 UTC
+++ setup.py
@@ -19,7 +19,7 @@ else:
   sys.exit(1)
 
 # Remove the old installation
-sphinxdir = os.path.dirname(sphinx.__file__)
+sphinxdir = sys.argv[2]
 olddst = os.path.join(sphinxdir, "numfig.py")
 olddstc = os.path.join(sphinxdir, "numfig.pyc")
 sphinxextdir = os.path.join(sphinxdir, "ext")
@@ -39,7 +39,7 @@ shutil.copyfile("numfig.py", dst)
 # Compile to bytecode
 import py_compile
 print "Compiling", dst, "to bytecode."
-py_compile.compile(dst)
+py_compile.compile(dst, dstc, sys.argv[3])
 
 # Fix perms
 mode = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH