-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 880 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
"""
hdnet_contrib
~~~~~
Hopfield denoising network setup file
"""
__version__ = "0.1"
from setuptools import setup
import os
hook = "README.md"
path = os.path.abspath(hook)
pathDir = path.replace(hook,'')
pathDir += "hdnet_contrib/PyCDMentropy/CDMentropy"
pathFile = path.replace(hook,'')
pathFile += "hdnet_contrib/CDMentropy.py"
line = "DEFAULT = \""+pathDir+"\""
with open (pathFile, 'r+') as f:
content = f.read()
f.seek(0, 0)
f.write(line.rstrip('\r\n') + '\n' + content)
setup(
name='hdnet_contrib',
version=__version__,
description='Repository for HDNet\'s extra modules',
url='http://github.com/',
author='Shiven Tripathi',
author_email='[email protected]',
license='GPLv3',
packages=['hdnet_contrib'],
install_requires=[
'hdnet',
'oct2py'
],
zip_safe=False)