fixup setup.py

authorRémi Cardona <remi.cardona@free.fr>
changeset37eb5bac804a
branchdefault
phasedraft
hiddenyes
parent revision#c3f71aa00c31 [py3k] Unicode everywhere, drop as_string()'s 'encoding' parameter
child revision#d8abe60fb3fe WIP [pkg] Use setuptools, #2086958475ec WIP
files modified by this revision
setup.py
# HG changeset patch
# User Rémi Cardona <remi.cardona@free.fr>
# Date 1424000414 -3600
# Sun Feb 15 12:40:14 2015 +0100
# Node ID 37eb5bac804a5224969c56029f092fda7c567322
# Parent c3f71aa00c317fd3104881df2efad4e6cd54de69
fixup setup.py

diff --git a/setup.py b/setup.py
@@ -17,10 +17,12 @@
1  #
2  # You should have received a copy of the GNU Lesser General Public License along
3  # with rql. If not, see <http://www.gnu.org/licenses/>.
4  """Generic Setup script, takes package info from __pkginfo__.py file.
5  """
6 +from __future__ import print_function
7 +
8  __docformat__ = "restructuredtext en"
9 
10  import os
11  import sys
12  import shutil
@@ -108,11 +110,11 @@
13                  pass
14          for dirname in dirnames:
15              src = join(dirpath, dirname)
16              dest = to_dir + src[len(from_dir):]
17              if verbose:
18 -                print >> sys.stderr, src, '->', dest
19 +                print(src, '->', dest, file=sys.stderr)
20              if not exists(dest):
21                  os.mkdir(dest)
22          for filename in fnames:
23              # don't include binary files
24              if filename[-4:] in ignore_ext:
@@ -120,11 +122,11 @@
25              if filename[-1] == '~':
26                  continue
27              src = join(dirpath, filename)
28              dest = to_dir + src[len(from_dir):]
29              if verbose:
30 -                print >> sys.stderr, src, '->', dest
31 +                print(src, '->', dest, file=sys.stderr)
32              if exists(dest):
33                  os.remove(dest)
34              shutil.copy2(src, dest)
35      try:
36          os.mkdir(to_dir)