aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2019-07-31 20:49:52 +0000
committerGitHub <noreply@github.com>2019-07-31 20:49:52 +0000
commitaa5a8bd0ecc50f9f9d05abac6654c8c28074c1e2 (patch)
treed248651290b03e5d618adeab991b7856888aad74 /setup.py
parent4092a230b6c56e63e4a5b2a9181dde91f54ae5aa (diff)
parent4f924fca750f90f75acfd5589ac601783c9f12af (diff)
Merge pull request #2 from georgethebeatle/macosx-supportHEADtrunk
Mac OSX support
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 95ae7f4..36c5628 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+import os, subprocess
from setuptools import setup, find_packages
setup(
@@ -11,3 +12,12 @@ setup(
author_email="reiner@reiner-h.de",
license="GPLv2+",
)
+
+if(os.uname().sysname == "Darwin"):
+ project_dir = os.path.dirname(os.path.realpath(__file__))
+ mac_setup_script = os.path.join(project_dir, "scripts", "osx_check.sh")
+ subprocess.check_call(mac_setup_script)
+ print("################################################")
+ print("OSX Installation Notice")
+ print("################################################")
+ print("In order to fully complete the installation, run 'sudo scripts/osx_post_install.sh'")