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(
name="pywmdockapps",
version = "$Revision: 1.21 $"[11:-2], version = "$Revision: 1.21 $"[11:-2],
description="This helper functions for windowmaker dockapps\nRead the whole story at http://pywmdockapps.sourceforge.net/",
description='''
read the whole story at http://pywmdockapps.sourceforge.net/''',
author="Kristoffer Erlandsson & al.", author="Kristoffer Erlandsson & al.",
author_email="mfrasca@zonnet.nl", author_email="mfrasca@zonnet.nl",
url="http://pywmdockapps.sourceforge.net", url="http://pywmdockapps.sourceforge.net",
license="(L)GPL", license="(L)GPL",
packages=['wmdocklib', packages=['wmdocklib'],
],
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']}, package_data={'wmdocklib': ['*.xpm']},
ext_modules = [module1]) ext_modules=[pywmgeneral],
)