-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
50 lines (49 loc) · 1.72 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
50
__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]
# print files
setup(
name='droneCFD',
version='0.1.1a',
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='dronecfd@gmail.com',
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'],
packages=find_packages(),
zip_safe = False,
package_data={"droneCFD.data":data_files,},
scripts=['droneCFD/scripts/dcCheck', 'droneCFD/scripts/dcRun', 'droneCFD/scripts/dcPostProcess']
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
# entry_points={
# 'console_scripts': [
# 'sample=sample:main',
# ],
# },
)