Skip to content

Commit

Permalink
Simplified setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed May 2, 2017
1 parent 5e96248 commit 65b77a0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,8 @@ def check_pseudo_package(path):


if __name__=="__main__":

if 'IMAGEN_RELEASE' in os.environ:
# Make sure to create these directories and populate them before upload
setup_args['packages'] += ["imagen.tests", "imagen.notebooks", "imagen.notebooks.images"]
setup_args['package_data']['imagen.notebooks'] = ['*.ipynb']
setup_args['package_data']['imagen.notebooks.images'] = ['*.pgm']

if ('upload' in sys.argv) or ('sdist' in sys.argv):
check_pseudo_package(os.path.join('.', 'imagen', 'tests'))
check_pseudo_package(os.path.join('.', 'imagen', 'notebooks'))

import imagen
imagen.__version__.verify(setup_args['version'])
if ('upload' in sys.argv) or ('sdist' in sys.argv):
import imagen
imagen.__version__.verify(setup_args['version'])

setup(**setup_args)

0 comments on commit 65b77a0

Please sign in to comment.