Skip to content

Commit babf490

Browse files
committed
Finally fix installation of photon requirements
1 parent 2ccf4f7 commit babf490

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

photonai/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
from . import configuration
2525
from .configuration.Register import PhotonRegister
26-
__version__ = "0.4.0"
26+
from ..setup import __version__
27+
2728

2829

2930
__all__ = ("base",

setup.py

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
from distutils.core import setup
2-
from setuptools import find_packages
3-
import photonai
1+
try:
2+
from setuptools import setup, find_packages
3+
except ImportError:
4+
from ez_setup import use_setuptools
5+
use_setuptools()
6+
from setuptools import setup, find_packages
7+
8+
9+
__version__ = '0.4.0'
410

511
setup(
612
name='photonai',
713
packages=find_packages(),
814
include_package_data=True,
9-
version=photonai.__version__,
15+
version=__version__,
1016
description='A Python-Based Hyperparameter optimization Toolbox for Neural Networks',
1117
author='PHOTON Team',
1218
author_email='[email protected]',
1319
url='https://github.com/photonai-team/photonai.git',
14-
download_url='https://github.com/photonai-team/photonai/archive/' + photonai.__version__ + '.tar.gz',
20+
download_url='https://github.com/photonai-team/photonai/archive/' + __version__ + '.tar.gz',
1521
keywords=['machine learning', 'deep learning', 'neural networks', 'hyperparameter'],
1622
classifiers=[],
1723
install_requires=[

0 commit comments

Comments
 (0)