from setuptools import setup, find_packages
import os

scriptnames = ['runElegant.sh',
               'sddsprintdata.sh',
               'renametolower.sh',
               'file2lower.sh',
               'lte2json',
               'json2lte',
               'latticeviewer',
               'lv']

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

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

setup(
        name     = "beamline",
        version  = "1.3.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 = "http://archman.github.io/beamline/",
        scripts  = [os.path.join('scripts',sn) for sn in scriptnames],
        install_requires = requiredpackages,
        extras_require = {'sdds': ['sddswhl']},
)

from setuptools import setup, find_packages
import os

scriptnames = ['runElegant.sh',
               'sddsprintdata.sh',
               'renametolower.sh',
               'file2lower.sh',
               'lte2json',
               'json2lte',
               'latticeviewer',
               'lv']

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

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

setup(
        name     = "beamline",
        version  = "1.3.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 = "http://archman.github.io/beamline/",
        scripts  = [os.path.join('scripts',sn) for sn in scriptnames],
        requires = requiredpackages,
        install_requires = requiredpackages,
        extras_require = {'sdds': ['sddswhl']},
)

--- 
+++ 
@@ -14,7 +14,7 @@
     with open('README.rst') as f:
         return f.read()
 
-requiredpackages = ['pyrpn', 'h5py', 'numpy', 'matplotlib', 'pyepics', 'wxPython']
+requiredpackages = ['pyrpn', 'h5py', 'numpy', 'matplotlib', 'pyepics']
 
 setup(
         name     = "beamline",
@@ -28,7 +28,6 @@
         packages = find_packages(),
         url = "http://archman.github.io/beamline/",
         scripts  = [os.path.join('scripts',sn) for sn in scriptnames],
-        requires = requiredpackages,
         install_requires = requiredpackages,
         extras_require = {'sdds': ['sddswhl']},
 )
Delete `requires` and `wxPython` dependency

`wxPython` is not easily installable via pip on all Linux distributions without explicitly providing the path to the wheel, yet.

`requires` is obsolete, because of the use of `install_requires`