Skip to content

Commit 1fc2981

Browse files
committed
setup.py: fix Python 3 compatibility
1 parent 78129d9 commit 1fc2981

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
## Changelog
22

3-
- 0.1.2: set zip_safe to False to better work with Cython (important for libs that depend on this one)
4-
- 0.1.1: change distribution system from distutils to setuptools
5-
- 0.1.0: initial version
3+
### [v0.1.2]
4+
- set zip_safe to False to better work with Cython (important for libs that depend on this one)
5+
6+
### [v0.1.1]
7+
- change distribution system from distutils to setuptools
8+
9+
### [v0.1.0]
10+
- initial version
611

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
"""Setuptools-based setup script for WLSQM."""
44

5-
from __future__ import absolute_import
5+
from __future__ import division, print_function, absolute_import
66

77
#########################################################
88
# Config
@@ -54,13 +54,13 @@
5454
my_extra_compile_args_nonmath = extra_compile_args_nonmath_optimized
5555
my_extra_link_args = extra_link_args_optimized
5656
debug = False
57-
print "build configuration selected: optimized"
57+
print( "build configuration selected: optimized" )
5858
else: # build_type == 'debug':
5959
my_extra_compile_args_math = extra_compile_args_math_debug
6060
my_extra_compile_args_nonmath = extra_compile_args_nonmath_debug
6161
my_extra_link_args = extra_link_args_debug
6262
debug = True
63-
print "build configuration selected: debug"
63+
print( "build configuration selected: debug" )
6464

6565

6666
#########################################################
@@ -144,7 +144,7 @@ def ext_math(extName):
144144
break
145145
else:
146146
version = '0.0.unknown'
147-
print "WARNING: Version information not found, using placeholder '%s'" % (version)
147+
print( "WARNING: Version information not found, using placeholder '%s'" % (version) )
148148

149149

150150
setup(

0 commit comments

Comments
 (0)