-
Notifications
You must be signed in to change notification settings - Fork 62
/
setup.py
49 lines (44 loc) · 1.75 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
39
40
41
42
43
44
45
46
47
48
49
# Copyright (c) Lawrence Livermore National Security, LLC and other Conduit
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
# other details. No copyright assignment is required to contribute to Conduit.
###############################################################################
###############################################################################
# file: setup.py
# Purpose: setuptools setup for conduit python module.
#
###############################################################################
import sys
import platform
from setuptools import setup
# path args fix helper for windows
def adjust_windows_args_paths():
print("[windows detected: normalizing paths]")
nargs =[]
for v in sys.argv:
nargs.append(v.replace("/","\\"))
sys.argv = nargs
# if windows, defend against path issue:
# https://github.com/LLNL/conduit/issues/1017
if platform.system() == 'Windows':
adjust_windows_args_paths()
CONDUIT_VERSION = '0.9.2'
setup (name = 'conduit',
description = 'conduit',
version = CONDUIT_VERSION,
package_dir = {'conduit':'py_src'},
zip_safe=False,
packages=['conduit',
'conduit.utils',
'conduit.blueprint',
'conduit.blueprint.mcarray',
'conduit.blueprint.mcarray.examples',
'conduit.blueprint.mesh',
'conduit.blueprint.mesh.examples',
'conduit.blueprint.table',
'conduit.blueprint.table.examples',
'conduit.relay',
'conduit.relay.io',
'conduit.relay.io.blueprint',
'conduit.relay.io.silo',
'conduit.relay.mpi',
'conduit.relay.web'])