Skip to content

Commit 70e2e55

Browse files
committed
Print PARI/GP defaults and environment variables for debugging
1 parent 7b0f4e5 commit 70e2e55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
from subprocess import check_call
1212
check_call([sys.executable, "-m", "pip", "install", "-r", reqs])
1313

14+
# Print PARI/GP defaults and environment variables for debugging
15+
from subprocess import Popen, PIPE
16+
Popen(["gp", "-f", "-q"], stdin=PIPE).communicate("default()")
17+
for item in os.environ.items():
18+
print("%s=%r" % item)
19+
1420

1521
from setuptools import setup
1622
from distutils.command.build_ext import build_ext as _build_ext

0 commit comments

Comments
 (0)