Skip to content

Commit

Permalink
added install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-curran committed Jun 13, 2017
1 parent 5a313df commit 4e3a012
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miphy_resources/miphy_daemon.py
Expand Up @@ -109,7 +109,10 @@ def save_svg():
filename += '.svg'
with open(filename, 'wb') as f:
f.write(svgData)
return 'Svg file saved to %s' % (filename)
ret_msg = 'Svg file saved to %s' % (filename)
else:
ret_msg = 'File not saved.'
return ret_msg
@self.server.route(daemonURL('/save-csv-locally'), methods=['POST'])
def save_csv():
root = tk_root()
Expand Down
27 changes: 27 additions & 0 deletions setup.py
@@ -0,0 +1,27 @@
from setuptools import setup
# VERY IMPORTANT that the files in PROGRAM_NAME.egg-info/ (created while running python setup.py sdist) have read permissions for any user. Otherwise running 'pip' to do anything on a user's system will break.

setup(
name="MIPhy",
version="0.8.0",

author="Dave Curran",
author_email="dmcurran@ucalgary.ca",
url="https://github.com/dave-the-scientist/miphy",

packages=["miphy_resources"],
# Scripts are isntalled to /usr/local/bin
scripts=["miphy.py", "miphy-tools.py"],
# Include additional files into the package
include_package_data=True,

# license="LICENSE.txt",
description="Useful towel-related stuff.",

# long_description=open("README.txt").read(),

# Dependent packages (distributions)
install_requires=[
"flask", "numpy"
],
)

0 comments on commit 4e3a012

Please sign in to comment.