From f675534637b54119b5a3b4def76c900ee3e6ebd1 Mon Sep 17 00:00:00 2001 From: ncullen93 Date: Tue, 23 Feb 2016 16:05:04 -0500 Subject: [PATCH] setup.py added --- .gitignore | 11 +++++++++++ pyBN/learning/structure/tree/chow_liu.py | 1 - pyBN/plotting/plot.py | 3 --- setup.py | 13 +++++++++++++ 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 2ea9cb2..553672a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,14 @@ *.bkbn .spyderworkspace .spyderproject + +# setup.py working directory +build +# sphinx build directory +doc/_build +# setup.py dist directory +dist +# Egg metadata +*.egg-info +.eggs +pyBN.egg-info \ No newline at end of file diff --git a/pyBN/learning/structure/tree/chow_liu.py b/pyBN/learning/structure/tree/chow_liu.py index ffecc25..bfe037d 100644 --- a/pyBN/learning/structure/tree/chow_liu.py +++ b/pyBN/learning/structure/tree/chow_liu.py @@ -16,7 +16,6 @@ from pyBN.classes.bayesnet import BayesNet import operator import numpy as np -from numba import jit def chow_liu(data,edges_only=False): diff --git a/pyBN/plotting/plot.py b/pyBN/plotting/plot.py index c6e09e4..83a9229 100644 --- a/pyBN/plotting/plot.py +++ b/pyBN/plotting/plot.py @@ -10,12 +10,9 @@ __author__ = """Nicholas Cullen """ import networkx as nx -import pydot -import graphviz as gv from graphviz import dot import matplotlib.pyplot as plt import matplotlib.image as mpimg -import pylab from networkx.drawing.nx_agraph import write_dot, graphviz_layout import subprocess import sys diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..93e9b9e --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +from distutils.core import setup +from setuptools import find_packages + +setup(name='pyBN', + version='0.1', + description='Bayesian Networks in Python', + author='Nicholas Cullen', + author_email='ncullen.th@dartmouth.edu', + url='sites.dartmouth.edu/ncullen', + packages=find_packages() + ) \ No newline at end of file