-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
29 lines (26 loc) · 1.01 KB
/
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
from setuptools import setup, find_packages
from setuptools.command.install import install
import os
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
from tomopy_cli.auto_complete import create_complete_tomopy
import pathlib
create_complete_tomopy.run(str(pathlib.Path.home())+'/complete_tomopy.sh')
print('For autocomplete in Linux please run: \n\n $ source '+str(pathlib.Path.home())+'/complete_tomopy.sh\n' )
setup(
name='tomopy-cli',
version=open('VERSION').read().strip(),
#version=__version__,
author='Francesco De Carlo',
author_email='decarlof@gmail.com',
url='https://github.com/decarlof/tomopy-cli',
packages=find_packages(),
include_package_data = True,
scripts=['bin/tomopycli.py'],
entry_points={'console_scripts':['tomopy = tomopycli:main'],},
description='cli for tomopy',
zip_safe=False,
cmdclass={'install': PostInstallCommand},
)