diff --git a/pymath/__init__.py b/pymath/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arithmetic.py b/pymath/arithmetic.py similarity index 100% rename from arithmetic.py rename to pymath/arithmetic.py diff --git a/expression.py b/pymath/expression.py similarity index 99% rename from expression.py rename to pymath/expression.py index e3ba90e..fb2809f 100644 --- a/expression.py +++ b/pymath/expression.py @@ -5,7 +5,6 @@ from generic import Stack, flatten_list, expand_list from fraction import Fraction from renders import txt_render, post2in_fix, tex_render from formal import FormalExp -from formal import FormalExp class Expression(object): """A calculus expression. Today it can andle only expression with numbers later it will be able to manipulate unknown""" diff --git a/fraction.py b/pymath/fraction.py similarity index 99% rename from fraction.py rename to pymath/fraction.py index 9d0f28c..728e4f4 100644 --- a/fraction.py +++ b/pymath/fraction.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # encoding: utf-8 -from arithmetic import gcd +from .arithmetic import gcd class Fraction(object): """Fractions!""" diff --git a/generic.py b/pymath/generic.py similarity index 100% rename from generic.py rename to pymath/generic.py diff --git a/random_expression.py b/pymath/random_expression.py similarity index 100% rename from random_expression.py rename to pymath/random_expression.py diff --git a/render.py b/pymath/render.py similarity index 100% rename from render.py rename to pymath/render.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e4fca94 --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup(name='pyMath', + version='0.1dev', + description='Computing like a student', + author='Benjamin Bertrand', + author_email='lafrite@poneyworld.net', + packages=['pymath'], + )