Skip to content

Commit

Permalink
macOS_app:release.py remove nmd specific hack to find correct Python
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Nov 27, 2024
1 parent 487fb82 commit e78590a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions macOS_app/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,5 @@ def do_release(python, dmg_name, freshen=True):


if __name__ == '__main__':
if '-m' in sys.argv or '--manual' in sys.argv:
do_release(sys.executable, "SnapPy-Python" + repr(sys.version_info.major))
else:
nmd_python_dir = os.environ['HOME'] + '/pkgs/pythons'
if os.path.exists(nmd_python_dir):
print('Using virtualenv Pythons')
python3 = nmd_python_dir + '/py' + PYTHON_VERSION_SHORT + '/bin/python'
else:
python3 = APP_PYTHON
freshen = '--no-freshen' not in sys.argv
do_release(python3, "SnapPy", freshen)
freshen = '--no-freshen' not in sys.argv
do_release(APP_PYTHON, "SnapPy", freshen)

0 comments on commit e78590a

Please sign in to comment.