-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (25 loc) · 943 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
"""Setup the slurmlib package."""
# -*- coding: utf-8 -*-
# Copyright (C) 2016 Diviyan Kalainathan
# Licence: Apache 2.0
import os
from shutil import copy2
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
def setup_package():
setup(name='slurmlib',
version='0.1',
description='A useful tool to run jobs on SLURM',
packages=find_packages(exclude=['examples', 'tests', 'tests.*']),
# package_data={'': ['**/*.R']},
# include_package_data=True,
author='Diviyan Kalainathan',
author_email='[email protected]',
license='Apache 2.0')
print("Don't forget to configure the extra files in ~/.ssh/")
if __name__ == '__main__':
copy2("./slurm_config.yml", os.environ['HOME'] + "/.ssh/")
copy2("./default_ssh_config", os.environ['HOME'] + "/.ssh/")
setup_package()