Skip to content

Commit 2138dc2

Browse files
authored
Merge pull request #106 from isuruf/patch-1
Use PARI_SHARE env variable to support cross compiling
2 parents d1fd6ca + ede26be commit 2138dc2

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)