Navigation Menu

Skip to content

Commit

Permalink
fixed bessel setup and its readme
Browse files Browse the repository at this point in the history
  • Loading branch information
daron1337 committed May 23, 2012
1 parent f21cff1 commit 03c8e04
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 14 deletions.
26 changes: 26 additions & 0 deletions README_BESSEL.txt
@@ -0,0 +1,26 @@
This cython module computes bessel functions of the first kind (J) for integers order n (0,1,2).
Once it has been installed, you can import it as a standard python module.
Bessel functions of the first kind, denoted as Ja(x), are solutions of Bessel's differential
equation that are finite at the origin (x = 0) for integer a, and diverge as x approaches zero
for negative non-integer a. The solution type (e.g.,integer or non-integer) and normalization of
Ja(x) are defined by its properties below. It is possible to define the function by its Taylor
series expansion around x = 0.

Bessel functions for python are only supported by SciPy package.
Windows users: please download and install Scipy package.

INSTALLATION REQUIREMENTS

Cython (http://cython.org/#download)

INSTALLATION HOW TO:

pip install Cython
pip install jBessel

or download source and run:

python setup.py install

Then simply start a Python session and do:
from Bessel import jBessel
29 changes: 15 additions & 14 deletions setup.py
@@ -1,44 +1,47 @@
#!/usr/bin/env python

try:
from Cython.Distutils import build_ext
except ImportError:
print "Please install Cython"
raise

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import os


CLASSIFIERS = ["Development Status :: 1 - Beta",
CLASSIFIERS = ["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: Linux/MacOsX",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Cython",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"]

# Description
description = "Bessel functions of the first kind written in Cython"
fid = file('README.rst', 'r')
fid = file('README_BESSEL.txt', 'r')
long_description = fid.read()
fid.close()
idx = max(0, long_description.find("Bessel functions of the first kind"))
long_description = long_description[idx:]

NAME = 'jBessels'
NAME = 'jBessel'
MAINTAINER = "Simone Manini"
MAINTAINER_EMAIL = "simone.manini@gmail.com"
DESCRIPTION = description
LONG_DESCRIPTION = long_description
URL = "http://berkeleyanalytics.com/bottleneck"
DOWNLOAD_URL = "http://pypi.python.org/pypi/jBessels"
URL = "https://github.com/daron1337/jBessel"
DOWNLOAD_URL = "http://pypi.python.org/pypi/jBessel"
LICENSE = "BSD"
CLASSIFIERS = CLASSIFIERS
AUTHOR = "Simone Manini"
AUTHOR_EMAIL = "simone.manini@gmail.com"
PLATFORMS = "Linux/MacOsX"
ISRELEASED = False
VERSION = '0.1'
PACKAGES = ["jBessels"]
PACKAGE_DATA = {'jBessels': ['LICENSE']}
ISRELEASED = True
VERSION = '0.1.4'

setup(name=NAME,
maintainer=MAINTAINER,
Expand All @@ -53,8 +56,6 @@
author_email=AUTHOR_EMAIL,
platforms=PLATFORMS,
version=VERSION,
packages=PACKAGES,
package_data=PACKAGE_DATA,
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("Bessel", ["Bessel.pyx"])]
)

0 comments on commit 03c8e04

Please sign in to comment.