-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (25 loc) · 942 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
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 tomo2bm.auto_complete import create_complete_scan
import pathlib
create_complete_scan.run(str(pathlib.Path.home())+'/complete_tomo.sh')
print('For autocomplete please run: \n\n $ source '+str(pathlib.Path.home())+'/complete_tomo.sh\n' )
setup(
name='tomo2bm',
version=open('VERSION').read().strip(),
#version=__version__,
author='Francesco De Carlo',
author_email='[email protected]',
url='https://github.com/decarlof/2bm-tomo',
packages=find_packages(),
include_package_data = True,
scripts=['bin/tomo'],
description='cli to run tomo scans at 2-bm',
zip_safe=False,
cmdclass={'install': PostInstallCommand},
)