-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
38 lines (35 loc) · 1.32 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
29
30
31
32
33
34
35
36
37
38
import setuptools
import os
import sys
import shutil
import sysconfig
ret = setuptools.setup(
name="jarvis_cd",
packages=setuptools.find_packages(),
scripts=['bin/jarvis'],
version="0.0.1",
author="Luke Logan",
author_email="llogan@hawk.iit.edu",
description="Create basic for applications",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url="https://github.com/scs-lab/jarvis-cd",
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 0 - Pre-Alpha",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: None",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Application Configuration",
]
)
# Install the builtin directory to ~/.jarvis
project_dir = os.path.dirname(os.path.realpath(__file__))
local_builtin_path = os.path.join(project_dir, 'builtin')
install_builtin_path = os.path.join(os.environ['HOME'], '.jarvis', 'builtin')
if not os.path.exists(os.path.dirname(install_builtin_path)):
os.makedirs(os.path.dirname(install_builtin_path))
shutil.copytree(local_builtin_path, install_builtin_path, dirs_exist_ok=True)