Skip to content

Commit

Permalink
Merge pull request #106 from isuruf/patch-1
Browse files Browse the repository at this point in the history
Use PARI_SHARE env variable to support cross compiling
  • Loading branch information
videlec authored Jun 10, 2021
2 parents d1fd6ca + ede26be commit 2138dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def pari_share():
>>> os.path.isfile(os.path.join(pari_share(), "pari.desc"))
True
"""
if "PARI_SHARE" in os.environ:
return os.environ["PARI_SHARE"]
from subprocess import Popen, PIPE
if not gppath:
raise EnvironmentError("cannot find an installation of PARI/GP: make sure that the 'gp' program is in your $PATH")
Expand Down

0 comments on commit 2138dc2

Please sign in to comment.