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
|
# Function to convert simple ETS project names and versions to a requirements
# spec that works for both development builds and stable builds. Allows
# a caller to specify a max version, which is intended to work along with
# Enthought's standard versioning scheme -- see the following write up:
# https://svn.enthought.com/enthought/wiki/EnthoughtVersionNumbers
def etsdep(p, min, max=None, literal=False):
require = '%s >=%s.dev' % (p, min)
if max is not None:
if literal is False:
require = '%s, <%s.a' % (require, max)
else:
require = '%s, <%s' % (require, max)
return require
# Declare our ETS project dependencies.
APPTOOLS = etsdep('AppTools', '3.3.2')
ENTHOUGHTBASE_UI = etsdep('EnthoughtBase[ui]', '3.0.5')
ETSDEVTOOLS_DEVELOPER = etsdep('ETSDevTools[developer]', '3.0.4')
TRAITS = etsdep('Traits', '3.4.0')
TRAITSGUI_DOCK = etsdep('TraitsGUI[dock]', '3.4.0')
# The following soft dependencies are handled with appropriate try...except
# wrappers in the code:
# AppTools -- used in traits.ui.wx.dnd_editor.py
# ETSDevTools -- used in traits.ui.wx.helper.py and view_application.py
# A dictionary of the setup data information.
INFO = {
'extras_require' : {
# Extra denoting that complete drag and drop support for files and
# named bindings should be installed:
'dnd': [
APPTOOLS,
],
# Extra denoting that complete developer debug support for the ETS FBI
# debugger should be installed:
'debug': [
ETSDEVTOOLS_DEVELOPER,
],
# All non-ets dependencies should be in this extra to ensure users can
# decide whether to require them or not.
'nonets': [
#'wx', # fixme: not available as an egg on all platforms.
],
},
'install_requires' : [
ENTHOUGHTBASE_UI,
TRAITSGUI_DOCK,
TRAITS,
],
'name': 'TraitsBackendWX',
'version': '3.4.0',
}
|