Skip to content

Commit

Permalink
Added first version of setup.pAdded first version of setup.pyy
Browse files Browse the repository at this point in the history
  • Loading branch information
Pål Ellingsen committed Feb 1, 2019
1 parent 2aa2740 commit 0fe89bc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy
Pillow
psycopg2
pylibdmtx
25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from setuptools import setup

with open('requirements.txt') as fid:
REQUIRES = [l.strip() for l in fid.readlines() if l]
setup(name='AeN_sample',
version='1.0',
description='Forena setup files and Python cgi for the Nansen Legacy sample log',
author='Pål Ellingsen',
author_email='[email protected]',
packages=[],
install_requires=REQUIRES,
url='https://github.com/SIOS-Svalbard/Aen_sample',
long_description=open('README.txt').read(),
scripts=[],)


if __name__ == "__main__":
try:
__import__('cv2')
except ImportError:
print("The Data Matrix reader of AeN_sample requires cv2")
print('''OpenCV needs to be built from source''')

0 comments on commit 0fe89bc

Please sign in to comment.