Example #1
0
TWISTED_VERSION = '2'

# -------------PYTHON VERSION----------
import sys, os
if sys.version < PYTHON_VERSION:
    raise VersionCheckFailed("Python " + PYTHON_VERSION +
                             " or later is required")

#  ------------TWISTED-----------------
try:
    import twisted
except ImportError:
    raise DependencyFailed("You need Twisted - http://www.twistedmatrix.com/")

from twisted.copyright import version as twisted_version
if not twisted_version.startswith('SVN') and twisted_version < TWISTED_VERSION:
    raise VersionCheckFailed("Twisted " + TWISTED_VERSION +
                             " or later is required")

# ---------------SOAPpy-----------------
try:
    import SOAPpy
except ImportError:
    raise DependencyFailed("You need SOAPpy")

setup(name='nattraverso',
      version='0.1.1',
      description='A NAT Traversal library',
      author='Raphael Slinckx',
      author_email='*****@*****.**',
      url='http://raphael.slinckx.net/nattraverso.php',
Example #2
0
PYTHON_VERSION = '2.3'
TWISTED_VERSION = '2'

# -------------PYTHON VERSION----------
import sys, os
if sys.version < PYTHON_VERSION:
    raise VersionCheckFailed("Python "+PYTHON_VERSION+" or later is required")

#  ------------TWISTED-----------------
try:
    import twisted
except ImportError:
    raise DependencyFailed("You need Twisted - http://www.twistedmatrix.com/")

from twisted.copyright import version as twisted_version
if not twisted_version.startswith('SVN') and twisted_version < TWISTED_VERSION:
    raise VersionCheckFailed("Twisted "+TWISTED_VERSION+" or later is required")

# ---------------SOAPpy-----------------
try:
    import SOAPpy
except ImportError:
    raise DependencyFailed("You need SOAPpy")

    
setup(name='nattraverso',
	version='0.1.1',
	description='A NAT Traversal library',
	author='Raphael Slinckx',
	author_email='*****@*****.**',
	url='http://raphael.slinckx.net/nattraverso.php',
Example #3
0
from shtoom import __version__

class DependencyFailed(Exception): pass
class VersionCheckFailed(DependencyFailed): pass

import sys, os
if sys.version < '2.3':
    raise VersionCheckFailed("Python 2.3 or later is required")

try:
    import twisted
except ImportError:
    raise DependencyFailed("You need Twisted - http://www.twistedmatrix.com/")

from twisted.copyright import version as tcversion
if not tcversion.startswith('SVN') and tcversion < '2':
    raise VersionCheckFailed("Twisted 2.0 or later is required")

#try:
#    import zope.interface
#except ImportError:
#    raise DependencyFailed("You need to install zope.interface - http://zope.org/Products/ZopeInterface")

if py2exe is not None:
    addnl = { 'console':['scripts/shtoomphone.py'],
              'windows': [ { 'script':'script/shtoomphone.py',
                             'icon_resources' : [( 1, 'shtoom.ico')] } ] }
else:
    addnl = {}

DataGlobs = ['*.glade','*.gladep','*.gif', '*.png']
Example #4
0
class VersionCheckFailed(DependencyFailed):
    pass


import sys, os
if sys.version < '2.3':
    raise VersionCheckFailed("Python 2.3 or later is required")

try:
    import twisted
except ImportError:
    raise DependencyFailed("You need Twisted - http://www.twistedmatrix.com/")

from twisted.copyright import version as tcversion
if not tcversion.startswith('SVN') and tcversion < '2':
    raise VersionCheckFailed("Twisted 2.0 or later is required")

#try:
#    import zope.interface
#except ImportError:
#    raise DependencyFailed("You need to install zope.interface - http://zope.org/Products/ZopeInterface")

if py2exe is not None:
    addnl = {
        'console': ['scripts/shtoomphone.py'],
        'windows': [{
            'script': 'script/shtoomphone.py',
            'icon_resources': [(1, 'shtoom.ico')]
        }]
    }