-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added first version of setup.pAdded first version of setup.pyy
- Loading branch information
Pål Ellingsen
committed
Feb 1, 2019
1 parent
2aa2740
commit 0fe89bc
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
numpy | ||
Pillow | ||
psycopg2 | ||
pylibdmtx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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''') |