-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NONUNIFORM: Deleted the cache.py file that created the jiang_shu.pkl
file as that is no longer necessary. Designed setup.py so that it will use f2py to create the nonuniform_weno_k.so modules and then carry those over in the installation of the package. Added MANIFEST and vim backup files to the .gitignore file.
- Loading branch information
1 parent
b960c9e
commit 71cf721
Showing
4 changed files
with
11 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ __git_version__.py | |
# setuptools | ||
build | ||
dist | ||
MANIFEST | ||
PyWENO* | ||
|
||
# examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
include LICENSE | ||
include version.py | ||
include pyweno/nonuniform_weno_3.so | ||
include pyweno/nonuniform_weno_5.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
'''PyWENO setup script.''' | ||
|
||
import subprocess | ||
import glob | ||
import os | ||
import re | ||
|
@@ -53,21 +54,27 @@ | |
f.close() | ||
|
||
|
||
if not os.path.exists('pyweno/nonuniform_weno_3.so'): | ||
subprocess.call('f2py -c pyweno/nonuniform_weno_3.f90 -m nonuniform_weno_3', shell=True) | ||
subprocess.call('mv nonuniform_weno_3.so pyweno/', shell=True) | ||
subprocess.call('f2py -c pyweno/nonuniform_weno_5.f90 -m nonuniform_weno_5', shell=True) | ||
subprocess.call('mv nonuniform_weno_5.so pyweno/', shell=True) | ||
|
||
############################################################################### | ||
# setup! | ||
|
||
setup( | ||
|
||
name = "PyWENO", | ||
packages = ['pyweno'], | ||
package_data = {'pyweno': ['nonuniform_weno_3.so', 'nonuniform_weno_5.so']}, | ||
version = version, | ||
author = "Matthew Emmett", | ||
author_email = "[email protected]", | ||
description = "Weighted Essentially Non-oscillatory (WENO) reconstructions.", | ||
license = "BSD", | ||
keywords = "weno, interpolate, interpolation, finite, volume", | ||
url = "http://readthedocs.org/docs/pyweno/en/latest/", | ||
data_files = [('pyweno', ['pyweno/nonuniform_weno_3.f90'])], | ||
|
||
# XXX | ||
# requires = [], | ||
|