Skip to content

Commit ede26be

Browse files
authored
Use PARI_SHARE env variable to support cross compiling
1 parent d1fd6ca commit ede26be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autogen/paths.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def pari_share():
4040
>>> os.path.isfile(os.path.join(pari_share(), "pari.desc"))
4141
True
4242
"""
43+
if "PARI_SHARE" in os.environ:
44+
return os.environ["PARI_SHARE"]
4345
from subprocess import Popen, PIPE
4446
if not gppath:
4547
raise EnvironmentError("cannot find an installation of PARI/GP: make sure that the 'gp' program is in your $PATH")

0 commit comments

Comments
 (0)