diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-09-25 14:28:22 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-09-25 14:28:22 +0200 |
| commit | e3fb2ccea19a13284104445191f0f274976f065e (patch) | |
| tree | 9cfb83c05b1ed71e6d2d8b4246151c126a3c8488 /setup.py | |
| parent | 124fcbbd9bd59ee84f2474c44aaaa06859c4b99a (diff) | |
[IMP] setup.py remove python2.5 compatibility
bzr revid: al@openerp.com-20110925122822-njsjvs8d0qlwf4l5
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 44 |
1 files changed, 1 insertions, 43 deletions
@@ -20,55 +20,13 @@ # ############################################################################## -# setup from TinERP -# taken from straw http://www.nongnu.org/straw/index.html -# taken from gnomolicious http://www.nongnu.org/gnomolicious/ -# adapted by Nicolas Évrard <nicoe@altern.org> -# -# doc/migrate is not included since about 6.1-dev -# doc/tests is not included -# python25-compat/*py should be in the openerp (and imported appropriately) - -import sys +import os, sys import os from os.path import join, isfile import glob from setuptools import setup, find_packages -# Backports os.walk with followlinks from python 2.6. -# Needed to add all addons files to data_files for Windows packaging. -def walk_followlinks(top, topdown=True, onerror=None, followlinks=False): - from os.path import join, isdir, islink - from os import listdir, error - - try: - names = listdir(top) - except error, err: - if onerror is not None: - onerror(err) - return - - dirs, nondirs = [], [] - for name in names: - if isdir(join(top, name)): - dirs.append(name) - else: - nondirs.append(name) - - if topdown: - yield top, dirs, nondirs - for name in dirs: - path = join(top, name) - if followlinks or not islink(path): - for x in walk_followlinks(path, topdown, onerror, followlinks): - yield x - if not topdown: - yield top, dirs, nondirs - -if sys.version_info < (2, 6): - os.walk = walk_followlinks - py2exe_keywords = {} py2exe_data_files = [] if os.name == 'nt': |
