updated from distutils to setupools

This commit is contained in:
Fredrick W. Warren 2024-09-09 01:08:36 -06:00
parent e9386776e8
commit 9ed8c863ec

View File

@ -1,37 +1,27 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Set these so they match your system. # Set these so they match your system.
XLibDir = '/usr/X11R6/lib' from __future__ import absolute_import
XIncludes = '/usr/X11R6/include' XLibDir = '/usr/lib/x11'
XIncludes = '/usr/include/x11'
from distutils.core import setup, Extension from setuptools import setup, Extension
module1 = Extension('wmdocklib.pywmgeneral', pywmgeneral = Extension('wmdocklib.pywmgeneral',
libraries = ['Xpm', 'Xext', 'X11'], libraries = ['Xpm', 'Xext', 'X11'],
library_dirs = [XLibDir], library_dirs = [XLibDir],
include_dirs = [XIncludes], include_dirs = [XIncludes],
sources = ['wmdocklib/pywmgeneral.c']) sources = ['wmdocklib/pywmgeneral.c'])
setup(name="pywmdockapps", setup(
version = "$Revision: 1.21 $"[11:-2], name="pywmdockapps",
version = "$Revision: 1.21 $"[11:-2],
description=''' description="This helper functions for windowmaker dockapps\nRead the whole story at http://pywmdockapps.sourceforge.net/",
read the whole story at http://pywmdockapps.sourceforge.net/''', author="Kristoffer Erlandsson & al.",
author_email="mfrasca@zonnet.nl",
author="Kristoffer Erlandsson & al.", url="http://pywmdockapps.sourceforge.net",
author_email="mfrasca@zonnet.nl", license="(L)GPL",
url="http://pywmdockapps.sourceforge.net", packages=['wmdocklib'],
license="(L)GPL", package_data={'wmdocklib': ['*.xpm']},
packages=['wmdocklib', ext_modules=[pywmgeneral],
], )
scripts=['examples/pywmdatetime.py',
'examples/pywmhdmon.py',
'examples/pywmseti.py',
'examples/pywmsysmon.py',
'examples/pywmphoto.py',
'examples/pywmwet.py',
'examples/pywmradio.py',
'examples/pywmgeneric.py'],
package_data={'wmdocklib': ['*.xpm']},
ext_modules = [module1])