1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409
|
#!/usr/local/bin/python2.1
""" Configuration for the eGenix mx Base Distribution
Copyright (c) 1997-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2011, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
"""
import sys
from mxSetup import mx_Extension, mx_version
#
# Package version
#
version = mx_version(3, 2, 1)
#
# Setup information
#
name = "egenix-mx-base"
#
# Meta-Data
#
description = "eGenix mx Base Distribution for Python - mxDateTime, mxTextTools, mxProxy, mxTools, mxBeeBase, mxStack, mxQueue, mxURL, mxUID"
long_description = """\
The eGenix mx Extension Series are a collection of Python extensions
written in ANSI C and Python which provide a large spectrum of useful
additions to everyday Python programming.
The Base Distribution includes the Open Source subpackages of the
series and is needed by all other add-on packages of the series:
mxDateTime - Date/Time Library for Python
mxDateTime implements three new object types, DateTime,
DateTimeDelta and RelativeDateTime and many tools based on these
for doing easy conversion between and parsing of various date/time
formats.
mxTextTools - Fast Text Parsing and Processing Tools for Python
mxTextTools provides several useful functions and types that
implement high-performance text parsing, processing and search
algorithms.
mxProxy - Object Access Control for Python
mxProxy implements a new proxy type to provide low-level object
access control, weak referencing and a cleanup protocol. It's
ideal for use in restricted execution environments.
mxBeeBase - On-disk B+Tree Based Database Kit for Python
mxBeeBase is a high performance construction kit for disk based
indexed databases. It offers components which you can plug
together to easily build your own custom mid-sized databases.
mxURL - Flexible URL Data-Type for Python
mxURL provides a new datatype for storing and manipulating URL
values as well as a few helpers related to URL building, encoding
and decoding.
mxUID - Fast Universal Identifiers for Python
mxUID implements a fast mechanism for generating universal
identification strings (UIDs).
mxStack - Fast and Memory-Efficient Stack Type for Python
mxStack implements a fast and memory efficient stack object type.
mxQueue - Fast and Memory-Efficient Queue Type for Python
mxQueue implements a fast and memory efficient queue object type.
mxTools - Fast Everyday Helpers for Python
mxTools provides a collection of handy functions and objects for
every day Python programming. It includes many functions that
you've often missed in Python.
This software is brought to you by eGenix.com and distributed under
the eGenix.com Public License 1.1.0.
"""
license = (
"eGenix.com Public License 1.1.0; "
"Copyright (c) 1997-2000, Marc-Andre Lemburg, All Rights Reserved; "
"Copyright (c) 2000-2011, eGenix.com Software GmbH, All Rights Reserved"
)
author = "eGenix.com Software GmbH"
author_email = "info@egenix.com"
maintainer = "eGenix.com Software GmbH"
maintainer_email = "info@egenix.com"
url = "http://www.egenix.com/products/python/mxBase/"
download_url = url
platforms = [
'Windows',
'Linux',
'FreeBSD',
'Solaris',
'Mac OS X',
'AIX',
]
classifiers = [
"Environment :: Console",
"Environment :: No Input/Output (Daemon)",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python License (CNRI Python License)",
"License :: Freely Distributable",
"License :: Other/Proprietary License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: BeOS",
"Operating System :: MacOS",
"Operating System :: OS/2",
"Operating System :: Other OS",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.4",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Documentation",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
"Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing",
"Topic :: Text Processing :: Filters",
"Topic :: Text Processing :: Markup",
# "Topic :: Utilities ",
]
if 'a' in version:
classifiers.append("Development Status :: 3 - Alpha")
elif 'b' in version:
classifiers.append("Development Status :: 4 - Beta")
else:
classifiers.append("Development Status :: 5 - Production/Stable")
classifiers.append("Development Status :: 6 - Mature")
classifiers.sort()
#
# Python packages
#
packages = [
# mx Extensions Base Package
'mx',
# mxDateTime
'mx.DateTime',
'mx.DateTime.mxDateTime',
'mx.DateTime.Examples',
# mxProxy
'mx.Proxy',
'mx.Proxy.mxProxy',
# mxQueue
'mx.Queue',
'mx.Queue.mxQueue',
# mxStack
'mx.Stack',
'mx.Stack.mxStack',
# mxTextTools
'mx.TextTools',
'mx.TextTools.mxTextTools',
'mx.TextTools.Constants',
'mx.TextTools.Examples',
# mxTools
'mx.Tools',
'mx.Tools.mxTools',
'mx.Tools.Examples',
# mxBeeBase
'mx.BeeBase',
'mx.BeeBase.mxBeeBase',
# mxURL
'mx.URL',
'mx.URL.mxURL',
# mxUID
'mx.UID',
'mx.UID.mxUID',
# Misc. other modules
'mx.Misc',
]
#
# C Extensions
#
# Determine optional platform-dependent features
if sys.platform[:3] != 'win':
# Unix-like platforms
_mxDateTime_optional_libraries = [
# mxDateTime needs floor() and ceil() which are sometimes
# defined in libm. Python normally already references this
# library if necessary, so not finding the library is not
# necessarily a reason to fail building mxDateTime.
('m', ['math.h']),
# mxDateTime can use the API clock_gettime() if available,
# but this sometimes needs the librt to be available.
('rt', ['time.h']),
]
_mxTools_optional_libraries = [
# The optional mx.Tools.dlopen() function needs the dl lib in
# order to load dynamic libaries on Unix platforms.
('dl', ['dlfcn.h']),
]
else:
# On Windows, the extra libs are not needed (or even available)
_mxDateTime_optional_libraries = []
_mxTools_optional_libraries = []
# Extension definitions
ext_modules = [
# mxDateTime
mx_Extension('mx.DateTime.mxDateTime.mxDateTime',
['mx/DateTime/mxDateTime/mxDateTime.c'],
# If mxDateTime doesn't compile, try removing the next line.
define_macros=[('USE_FAST_GETCURRENTTIME', None)],
#
include_dirs=['mx/DateTime/mxDateTime'],
optional_libraries=_mxDateTime_optional_libraries,
),
# mxProxy
mx_Extension('mx.Proxy.mxProxy.mxProxy',
['mx/Proxy/mxProxy/mxProxy.c'],
include_dirs=['mx/Proxy/mxProxy']),
# mxQueue
mx_Extension('mx.Queue.mxQueue.mxQueue',
['mx/Queue/mxQueue/mxQueue.c'],
include_dirs=['mx/Queue/mxQueue']),
# mxStack
mx_Extension('mx.Stack.mxStack.mxStack',
['mx/Stack/mxStack/mxStack.c'],
include_dirs=['mx/Stack/mxStack']),
# mxTextTools
mx_Extension('mx.TextTools.mxTextTools.mxTextTools',
['mx/TextTools/mxTextTools/mxTextTools.c',
'mx/TextTools/mxTextTools/mxte.c',
'mx/TextTools/mxTextTools/mxbmse.c'],
define_macros=[('MX_BUILDING_MXTEXTTOOLS', None)],
include_dirs=['mx/TextTools/mxTextTools']),
# mxTools
mx_Extension('mx.Tools.mxTools.mxTools',
['mx/Tools/mxTools/mxTools.c'],
define_macros=[
# To enable mx.Tools.setproctitle(), you have to enable
# the following line. Note that not all Python versions
# expose the required Py_GetArgcArgv() API.
# ('HAVE_PY_GETARGCARGV', None),
# If you want to use the experimental mx.Tools.safecall()
# API, you have to enable the following line.
# ('MXTOOLS_ENABLE_SAFECALL', None),
],
include_dirs=['mx/Tools/mxTools'],
optional_libraries=_mxTools_optional_libraries,
),
# xmap is no longer supported
#mx_Extension('mx.Tools.mxTools.xmap',
# ['mx/Tools/mxTools/xmap.c'],
# include_dirs=['mx/Tools/mxTools']),
# mxBeeBase
mx_Extension('mx.BeeBase.mxBeeBase.mxBeeBase',
['mx/BeeBase/mxBeeBase/mxBeeBase.c',
'mx/BeeBase/mxBeeBase/btr.c'],
include_dirs=['mx/BeeBase/mxBeeBase']),
# mxURL
mx_Extension('mx.URL.mxURL.mxURL',
['mx/URL/mxURL/mxURL.c'],
include_dirs=['mx/URL/mxURL']),
# mxUID
mx_Extension('mx.UID.mxUID.mxUID',
['mx/UID/mxUID/mxUID.c'],
include_dirs=['mx/UID/mxUID']),
]
#
# Data files
#
data_files = [
# Copyright, licenses, READMEs
'mx/COPYRIGHT',
'mx/LICENSE',
'mx/README',
# Misc
'mx/Misc/LICENSE',
'mx/Misc/COPYRIGHT',
# mxDateTime
'mx/DateTime/Doc/mxDateTime.pdf',
'mx/DateTime/COPYRIGHT',
'mx/DateTime/LICENSE',
'mx/DateTime/README',
'mx/DateTime/mxDateTime/mxDateTime.h',
'mx/DateTime/mxDateTime/mxh.h',
# mxProxy
'mx/Proxy/Doc/mxProxy.pdf',
'mx/Proxy/COPYRIGHT',
'mx/Proxy/LICENSE',
'mx/Proxy/README',
'mx/Proxy/mxProxy/mxProxy.h',
'mx/Proxy/mxProxy/mxh.h',
# mxQueue
'mx/Queue/Doc/mxQueue.pdf',
'mx/Queue/COPYRIGHT',
'mx/Queue/LICENSE',
'mx/Queue/README',
'mx/Queue/mxQueue/mxQueue.h',
'mx/Queue/mxQueue/mxh.h',
# mxStack
'mx/Stack/Doc/mxStack.pdf',
'mx/Stack/COPYRIGHT',
'mx/Stack/LICENSE',
'mx/Stack/README',
'mx/Stack/mxStack/mxStack.h',
'mx/Stack/mxStack/mxh.h',
# mxTextTools
'mx/TextTools/Doc/mxTextTools.pdf',
'mx/TextTools/COPYRIGHT',
'mx/TextTools/LICENSE',
'mx/TextTools/README',
'mx/TextTools/mxTextTools/mxTextTools.h',
'mx/TextTools/mxTextTools/mxh.h',
'mx/TextTools/mxTextTools/mxbmse.h',
# mxTools
'mx/Tools/Doc/mxTools.pdf',
'mx/Tools/COPYRIGHT',
'mx/Tools/LICENSE',
'mx/Tools/README',
'mx/Tools/mxTools/mxTools.h',
'mx/Tools/mxTools/mxh.h',
# mxBeeBase
'mx/BeeBase/Doc/mxBeeBase.pdf',
'mx/BeeBase/COPYRIGHT',
'mx/BeeBase/LICENSE',
'mx/BeeBase/README',
'mx/BeeBase/mxBeeBase/mxBeeBase.h',
'mx/BeeBase/mxBeeBase/mxh.h',
'mx/BeeBase/mxBeeBase/btr.h',
# mxURL
'mx/URL/Doc/mxURL.pdf',
'mx/URL/COPYRIGHT',
'mx/URL/LICENSE',
'mx/URL/README',
'mx/URL/mxURL/mxURL.h',
'mx/URL/mxURL/mxh.h',
# mxUID
'mx/UID/Doc/mxUID.pdf',
'mx/UID/COPYRIGHT',
'mx/UID/LICENSE',
'mx/UID/README',
'mx/UID/mxUID/mxUID.h',
'mx/UID/mxUID/mxh.h',
]
# Declare namespace packages (for building eggs)
namespace_packages = [
'mx',
]
|