from setuptools import setup, find_packages
import os

scriptnames = ['runElegant.sh', 
               'sddsprintdata.sh', 
               'renametolower.sh',
               'file2lower.sh']

setup(
        name     = "beamline",
        version  = "1.1.4",
        description = "beamline plot module",
        author   = "Tong Zhang",
        author_email = "warriorlance@gmail.com",
        platforms = ["Linux"],
        license  = "MIT",
        packages = find_packages(),
        url = "https://github.com/Archman/beamline",
        scripts  = [os.path.join('scripts',sn) for sn in scriptnames],
     )


from setuptools import setup, find_packages
import os

scriptnames = ['runElegant.sh', 
               'sddsprintdata.sh', 
               'renametolower.sh',
               'file2lower.sh']

def readme():
    with open('README.rst') as f:
        return f.read()

requiredpackages = ['pyrpn', 'h5py', 'numpy', 'matplotlib', 'pyepics']

setup(
        name     = "beamline",
        version  = "1.1.6",
        description = "online model package for electron accelerator",
        long_description = readme() + '\n\n',
        author   = "Tong Zhang",
        author_email = "warriorlance@gmail.com",
        platforms = ["Linux"],
        license  = "MIT",
        packages = find_packages(),
        url = "https://github.com/Archman/beamline",
        scripts  = [os.path.join('scripts',sn) for sn in scriptnames],
        requires = requiredpackages,
)


add required packages option