forked from dronecfd/droneCFD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (42 loc) · 1.53 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
__author__ = 'cpaulson'
from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path, walk
here = path.abspath(path.dirname(__file__))
datadir = 'droneCFD/data'
package_data = [ (d, [path.join(d, f) for f in files]) for d,folders,files in walk(datadir)]
print package_data
data_files=[]
for i in package_data:
for j in i[1]:
data_files.append(j)
data_files = [path.relpath(file, datadir) for file in data_files]
setup(
name='droneCFD',
version='0.1.4',
description='A virtual wind tunnel based on OpenFOAM and PyFOAM',
long_description='Please see dronecfd.com for more information',
url='http://www.dronecfd.com',
# Author details
author='Chris Paulson',
author_email='[email protected]',
license='GNU',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
keywords='cfd wind tunnel uav uas suas',
install_requires=['XlsxWriter', 'numpy', 'numpy-stl'],
packages=find_packages(),
zip_safe = False,
package_data={"droneCFD.data":data_files,},
scripts=['scripts/dcCheck',
'scripts/dcRun',
'scripts/dcPostProcess']
)