From 26ff38d039cf16f09c7c86cfae77b816358ff164 Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Thu, 7 May 2015 23:08:42 -0500 Subject: [PATCH] created dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ nd2reader/reader.py | 4 +++- setup.py | 5 +---- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..95602c0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu +MAINTAINER Jim Rybarski + +RUN apt-get update && apt-get install -y \ + gcc \ + gfortran \ + libblas-dev \ + liblapack-dev \ + libatlas-dev \ + tk \ + tk-dev \ + libpng12-dev \ + python \ + python-dev \ + python-pip \ + libfreetype6-dev \ + python-skimage + +RUN pip install numpy +RUN pip install --upgrade scikit-image + +COPY . /opt/nd2reader +WORKDIR /opt/nd2reader +RUN python setup.py install diff --git a/nd2reader/reader.py b/nd2reader/reader.py index 3b3732a..d269bf3 100644 --- a/nd2reader/reader.py +++ b/nd2reader/reader.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import array import numpy as np import struct @@ -280,4 +282,4 @@ class Nd2FileReader(object): res[name].append(value) x = data.read() assert not x, "skip %d %s" % (len(x), repr(x[:30])) - return res \ No newline at end of file + return res diff --git a/setup.py b/setup.py index 93db35b..5107f45 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,5 @@ from setuptools import setup, find_packages setup( name="nd2reader", packages=find_packages(), - version="0.9.7", - install_requires=[ - 'numpy', - ], + version="0.9.7" ) \ No newline at end of file