Skip to content

Commit

Permalink
Fixed print statements/functions in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Hallock committed May 7, 2018
1 parent a8ad013 commit 2a160d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
try:
import numpy
except ImportError:
print "Error: Cannot import NumPy. Can't continue."
print("Error: Cannot import NumPy. Can't continue.")
sys.exit(1)

PYNGL_NCARG_DIR = "src/ngl/ncarg"
Expand All @@ -61,7 +61,7 @@
try:
ncarg_root = os.environ["NCARG_ROOT"]
except:
print "NCARG_ROOT is not set; can't continue!"
print("NCARG_ROOT is not set; can't continue!")
sys.exit(1)
try:
ncarg_lib = os.environ["NCARG_LIB"]
Expand Down Expand Up @@ -116,11 +116,11 @@ def copy_pynglex_script():
# Modify the pynglex script to have the correct python invocation.
for line in fileinput.input(pynglex_v_file,inplace=1):
if (re.search("/usr/bin/env python",line) != None):
print line.replace("python","python"+sys.version[:3]),
print(line.replace("python","python"+sys.version[:3]))
elif(re.search("^py_cmd = 'python'",line) != None):
print line.replace("python","python"+sys.version[:3]),
print(line.replace("python","python"+sys.version[:3]))
else:
print line,
print(line)

return [pynglex_script, pynglex_v_file]

Expand Down

0 comments on commit 2a160d4

Please sign in to comment.