Skip to content

Commit

Permalink
moved data into folder to fix pip install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dronecfd committed Oct 15, 2014
1 parent c5bc0a6 commit 53a0d79
Show file tree
Hide file tree
Showing 25 changed files with 18 additions and 11 deletions.
8 changes: 4 additions & 4 deletions MANIFEST.in
@@ -1,5 +1,5 @@
include droneCFD/*.py
recursive-include data *
recursive-include data/0 *
recursive-include data/system *
recursive-include data/constant *
recursive-include droneCFD/data *
recursive-include droneCFD/data/0 *
recursive-include droneCFD/data/system *
recursive-include droneCFD/data/constant *
4 changes: 2 additions & 2 deletions droneCFD/Utilities.py
Expand Up @@ -29,12 +29,12 @@ def __init__(self, folderPath, geometryPath=None, templatePath=None, parserArgs=
exit()

if templatePath is None:
self.templatePath = os.path.dirname(__file__)+'/../data/template'
self.templatePath = os.path.dirname(__file__)+'/data/template'
print 'Template File Path is: {0}'.format(self.templatePath)

if geometryPath is None:
## Default to the base geometry
geometryPath = os.path.dirname(__file__)+'/../data/geometries/benchmarkAircraft.stl'
geometryPath = os.path.dirname(__file__)+'/data/geometries/benchmarkAircraft.stl'

## Since the path exists, lets make sure that folder doesn't exist
#TODO: Don't just delete a folder without asking for permission
Expand Down
1 change: 1 addition & 0 deletions droneCFD/data/__init__.py
@@ -0,0 +1 @@
__author__ = 'cpaulson'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 11 additions & 5 deletions setup.py
Expand Up @@ -4,11 +4,18 @@
from os import path, walk

here = path.abspath(path.dirname(__file__))
datadir = 'data'
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.1',
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',
Expand All @@ -28,10 +35,9 @@
],
keywords='cfd wind tunnel uav uas suas',
install_requires=['XlsxWriter', 'numpy'],
packages=['droneCFD'],
packages=find_packages(),
zip_safe = False,
package_dir={'droneCFD': 'droneCFD'},
data_files=package_data,
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
Expand Down

0 comments on commit 53a0d79

Please sign in to comment.