Skip to content

Commit

Permalink
Add script to run on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Reeves authored and Reeves committed Mar 27, 2020
1 parent 7f3c22f commit 5e0ba74
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/soapy
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ if __name__=="__main__":

#Define parser and add arguments
parser = ArgumentParser()
parser.add_argument("configFile", nargs="?", action="store",
help="The AO config file you wish to simulate. Defaults to conf/sh_8x8.py if none specified.")
parser.add_argument("configFile", nargs="?", action="store", required=True
help="The AO config file you wish to simulate.")
parser.add_argument("--gui","-g", action="store_true", dest="gui",
help="Starts the AO gui to visualise your simulation")

Expand Down
1 change: 1 addition & 0 deletions bin/soapy.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python.exe %~dp0\soapy %*
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

import platform
from setuptools import setup, find_packages
import versioneer

Expand All @@ -7,7 +9,13 @@
versioneer.versionfile_build = 'soapy/_version.py'
versioneer.tag_prefix = '' # tags are like 1.2.0
versioneer.parentdir_prefix = 'soapy-' # dirname like 'myproject-1.2.0'



scripts = ["bin/soapy"]

if (platform.system() == "Windows"):
scripts.append("bin/soapy.bat")


setup(
name='soapy',
Expand All @@ -16,7 +24,7 @@
author='Andrew P. Reeves',
author_email='[email protected]',
packages=find_packages(),
scripts=['bin/soapy'],
scripts=scripts,
description='A tomographic astronomical adaptive optics simulation with realistic laser guide star propagation.',
long_description=open('README.md').read(),
install_requires=[
Expand Down

0 comments on commit 5e0ba74

Please sign in to comment.