Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure into package #4

Merged
merged 2 commits into from
Nov 17, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
447 changes: 0 additions & 447 deletions plotting.py

This file was deleted.

60 changes: 60 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/usr/bin/env python

"""
setup.py for tracpy -- python wrappers around TRACMASS

"""
import shutil
from setuptools import setup # to support "develop" mode
from numpy.distutils.core import setup, Extension

# ## total kludge:
# ## this copies extension built with makefile to package
# ## better to have setup.py build TRACMASS

# try:
# shutil.copyfile("src/tracmass.so", "tracpy/tracmass.so")

# except IOError:
# raise Exception("TRAMASS extesnion not built -- built it with the makefile in src")

tracmass_mod = Extension(name = "tracmass",
sources=['src/calc_dxyz.f95',
'src/cross.f95',
'src/loop_pos.f95',
'src/step.f95',
'src/vertvel.f95',
'src/calc_time.f95',
'src/diffusion.f95',
'src/pos.f95',
'src/turb.f95',
],
#extra_f90_compile_args=["-ffixed-form"],
)

# modules = ["tracpy/inout.py",
# "tracpy/op.py"
# "tracpy/plotting.py",
# "tracpy/run.py",
# "tracpy/tools.py",
# ]

print tracmass_mod

setup(
name = "tracpy",
version = "0.01",
author = "Kristen Thyng",
author_email = "",
description = ("python wrappers around TRACMASS"),
long_description=open('README.md').read(),
classifiers=[
"Development Status :: 3 - Alpha",
# "Topic :: Utilities",
],
packages = ["tracpy"],
# py_modules = modules,
ext_package='tracpy',
ext_modules = [tracmass_mod],
scripts = [],
)
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.
5 changes: 2 additions & 3 deletions __init__.py → tracpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@
* vertvel.f95
'''

import init
import inout
import op
import plotting
import run
#import plotting
#import run
import tools

__authors__ = ['Kristen Thyng <kthyng@tamu.edu>']
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion run.py → tracpy/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import time
from matplotlib.mlab import *
import inout
import init
#import init
import plotting
import tools
from scipy import ndimage
Expand Down
File renamed without changes.