diff --git a/src/bsk_rl/finish_install.py b/src/bsk_rl/finish_install.py index be45eaec..f0bd9b32 100644 --- a/src/bsk_rl/finish_install.py +++ b/src/bsk_rl/finish_install.py @@ -1,4 +1,5 @@ import io +import os import subprocess import sys import zipfile @@ -10,15 +11,27 @@ def pck_install(): - subprocess.check_call( - [ - sys.executable, - "-m", - "pip", - "install", - "git+https://github.com/chebpy/chebpy.git", - ] - ) + if os.uname().sysname == "Darwin" and os.uname().machine == "arm64": + subprocess.check_call( + [ + sys.executable, + "-m", + "pip", + "install", + "--no-deps", + "git+https://github.com/chebpy/chebpy.git", + ] + ) + else: + subprocess.check_call( + [ + sys.executable, + "-m", + "pip", + "install", + "git+https://github.com/chebpy/chebpy.git", + ] + ) r = requests.get( "https://simplemaps.com/static/data/world-cities/basic/simplemaps_worldcities_basicv1.76.zip"