Commit ec9e1b5a authored by Reinhard Prix's avatar Reinhard Prix
Browse files

updates for python3, improved using setuptools

parent 6a8e4c3b
...@@ -12,7 +12,7 @@ import socket ...@@ -12,7 +12,7 @@ import socket
import numpy as np import numpy as np
import matplotlib import matplotlib
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from scipy.misc import logsumexp from scipy.special import logsumexp
import pyfstat.helper_functions as helper_functions import pyfstat.helper_functions as helper_functions
from pyfstat.core import (BaseSearchClass, ComputeFstat, from pyfstat.core import (BaseSearchClass, ComputeFstat,
#!/usr/bin/env python #!/usr/bin/env python
from distutils.core import setup from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, ''), encoding='utf-8') as f:
long_description =
setup(name='PyFstat', setup(name='PyFstat',
version='0.2', version='0.2',
author='Gregory Ashton', author='Gregory Ashton',
author_email='', author_email='',
packages=['pyfstat'], packages=find_packages(where="pyfstat"),
include_package_data=True, include_package_data=True,
package_data={'pyfstat': ['pyCUDAkernels/', package_data={'pyfstat': ['pyCUDAkernels/',
'pyCUDAkernels/']}, 'pyCUDAkernels/']},
) install_requires=[
...@@ -93,7 +93,6 @@ class par(Test): ...@@ -93,7 +93,6 @@ class par(Test):
label = 'TestPar' label = 'TestPar'
def test(self): def test(self):
os.system('mkdir {}'.format(self.outdir))
os.system( os.system(
'echo "x=100\ny=10" > {}/{}.par'.format(self.outdir, self.label)) 'echo "x=100\ny=10" > {}/{}.par'.format(self.outdir, self.label))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment