tahoe-lafs/misc/dependencies/setup.py
robk-tahoe 2585908296 tweaks to build process to support py2exe
py2exe is unable to handle .eggs which are packaged as zip files
in preference it will pull in other versions of libraries if they 
can be found in the environment.

this changes causes .eggs to be built as .egg directories, which
py2exe can handle.
2008-01-09 19:02:53 -07:00

36 lines
991 B
Python

#! /usr/bin/env python
# N.B.: this expects to run from the top of the source tree
import sys, os
miscdeps=os.path.join('misc', 'dependencies')
try:
from ez_setup import use_setuptools
except ImportError:
pass
else:
if 'cygwin' in sys.platform.lower():
min_version='0.6c6'
else:
# foolscap uses a module-level os.urandom() during import, which
# breaks inside older setuptools' sandboxing. 0.6c4 is the first
# version which fixed this problem.
min_version='0.6c4'
download_base = "file:"+os.path.join('misc', 'dependencies')+os.path.sep
use_setuptools(min_version=min_version,
download_base=download_base,
download_delay=0, to_dir=miscdeps)
from setuptools import setup
from calcdeps import install_requires, dependency_links
setup(name='tahoe-deps',
version="1",
install_requires=install_requires,
dependency_links=dependency_links,
zip_safe=False
)