-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 1.5 KB
/
setup.py
File metadata and controls
45 lines (40 loc) · 1.5 KB
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
39
40
41
42
43
44
"""
Setup script for pangalactic.warp, the Pan Galactic Engineering Framework
(PGEF) Model-Based Engineering (MBE) environment, containing the Warp desktop
client.
"""
import os, site
from setuptools import setup, find_packages
VERSION = open('VERSION').read()[:-1]
icon_mod_path = os.path.join('pangalactic', 'warp', 'icons')
icon_paths = [os.path.join(icon_mod_path, p)
for p in os.listdir(icon_mod_path)
if not p.startswith('__init__')]
image_mod_path = os.path.join('pangalactic', 'warp', 'images')
image_paths = [os.path.join(image_mod_path, p)
for p in os.listdir(image_mod_path)
if not p.startswith('__init__')]
sitepkg_dir = [p for p in site.getsitepackages()
if p.endswith('site-packages')][0]
long_description = (
"The Pan Galactic Engineering Framework (PGEF) Model-Based Engineering "
"(MBE) environment, contains the Warp desktop client.")
setup(
name='pangalactic.warp',
version=VERSION,
description="The PGEF Model-Based Engineering (MBE) Environment",
long_description=long_description,
author='Stephen Waterbury',
author_email='stephen.c.waterbury@nasa.gov',
maintainer="Stephen Waterbury",
maintainer_email='waterbug@pangalactic.us',
license='TBD',
packages=find_packages(),
data_files=[
# icon files
(os.path.join(sitepkg_dir, icon_mod_path), icon_paths),
# image files
(os.path.join(sitepkg_dir, image_mod_path), image_paths)
],
zip_safe=False
)