From 243e3112ff0bc9ed49de2764b57e62365946696a Mon Sep 17 00:00:00 2001 From: "Michael D. M. Dryden" <mdryden@chem.utoronto.ca> Date: Thu, 28 Aug 2014 15:26:37 -0400 Subject: [PATCH] requirements --- dstat-interface/BUILD.txt | 13 ++++++++ dstat-interface/{LICENSE => LICENSE.txt} | 0 dstat-interface/{README => README.txt} | 0 dstat-interface/dstat-interface/dstat.spec | 2 +- dstat-interface/dstat-interface/setup.py | 38 +++++++++------------- 5 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 dstat-interface/BUILD.txt rename dstat-interface/{LICENSE => LICENSE.txt} (100%) rename dstat-interface/{README => README.txt} (100%) diff --git a/dstat-interface/BUILD.txt b/dstat-interface/BUILD.txt new file mode 100644 index 0000000..5e7611f --- /dev/null +++ b/dstat-interface/BUILD.txt @@ -0,0 +1,13 @@ +Requirements: + python >= 2.7.8 + cython >= 0.20.1 + matplotlib >= 1.3.1 + numpy >= 1.8.2 + pyserial >= 2.7 + pyzmq >= 14.3.1 + gtk+ >= 2.24.24 + pygobject >= 2.28.6 + pygtk >= 2.24.0 + + For packaging: + pyinstaller \ No newline at end of file diff --git a/dstat-interface/LICENSE b/dstat-interface/LICENSE.txt similarity index 100% rename from dstat-interface/LICENSE rename to dstat-interface/LICENSE.txt diff --git a/dstat-interface/README b/dstat-interface/README.txt similarity index 100% rename from dstat-interface/README rename to dstat-interface/README.txt diff --git a/dstat-interface/dstat-interface/dstat.spec b/dstat-interface/dstat-interface/dstat.spec index c0f001d..4faa1c8 100644 --- a/dstat-interface/dstat-interface/dstat.spec +++ b/dstat-interface/dstat-interface/dstat.spec @@ -1,7 +1,7 @@ # -*- mode: python -*- a = Analysis(['./main.py'], pathex=['/Users/mdryden/src/dstat-interface2/dstatInterface'], - hiddenimports=[], + hiddenimports=['zmq.utils.strtypes', 'zmq.utils.jsonapi','zmq.core.pysocket','cython'], hookspath=None, runtime_hooks=None) pyz = PYZ(a.pure) diff --git a/dstat-interface/dstat-interface/setup.py b/dstat-interface/dstat-interface/setup.py index bbecb41..3012fb2 100644 --- a/dstat-interface/dstat-interface/setup.py +++ b/dstat-interface/dstat-interface/setup.py @@ -1,25 +1,19 @@ -#!/usr/bin/env python -# DStat Interface - An interface for the open hardware DStat potentiostat -# Copyright (C) 2014 Michael D. M. Dryden - -# Wheeler Microfluidics Laboratory <http://microfluidics.utoronto.ca> -# -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +""" +This is a setup.py script generated by py2applet -from distutils.core import setup -from Cython.Build import cythonize +Usage: + python setup.py py2app +""" + +from setuptools import setup + +APP = ['main.py'] +DATA_FILES = ['interface'] +OPTIONS = {'argv_emulation': True} setup( - ext_modules = cythonize("*.pyx") - ) \ No newline at end of file + app=APP, + data_files=DATA_FILES, + options={'py2app': OPTIONS}, + setup_requires=['py2app'], +) -- GitLab