Skip to content

Commit

Permalink
Python 3 updates (#13)
Browse files Browse the repository at this point in the history
* removed future imports

* updated python-config
  • Loading branch information
ewu63 authored Apr 16, 2020
1 parent 9876257 commit d29715f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/defaults/config.LINUX_GFORTRAN_OPENMPI.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ PETSC_LINKER_FLAGS=${PETSC_LIB}

# Define potentially different python, python-config and f2py executables:
PYTHON = python
PYTHON-CONFIG = python-config
PYTHON-CONFIG = python3-config # use python-config for python 2
F2PY = f2py
2 changes: 1 addition & 1 deletion config/defaults/config.LINUX_INTEL_OPENMPI.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ PETSC_LINKER_FLAGS=${PETSC_LIB}

# Define potentially different python, python-config and f2py executables:
PYTHON = python
PYTHON-CONFIG = python-config
PYTHON-CONFIG = python3-config # use python-config for python 2
F2PY = f2py
2 changes: 0 additions & 2 deletions python/pyHyp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function
from __future__ import division
"""
pyHyp
Expand Down
2 changes: 1 addition & 1 deletion src/python/f2py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ all:
@echo "#------------------------------------------------------#"

# Generate Numpy inlude directory
$(eval NUMPY_INCLUDES = $(shell $(PYTHON) -c 'from __future__ import print_function; import numpy; print(numpy.get_include())'))
$(eval NUMPY_INCLUDES = $(shell $(PYTHON) -c 'import numpy; print(numpy.get_include())'))
@echo "#------------------------------------------------------#"
@echo Numpy Include Directory: $(NUMPY_INCLUDES)
@echo "#------------------------------------------------------#"
Expand Down
1 change: 0 additions & 1 deletion src/python/f2py/get_f2py.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#------------- VERY IMPORTANT ------------

# This script is necessary since f2py INSISTS on priting crap out when
Expand Down
1 change: 0 additions & 1 deletion src/python/f2py/importTest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env python
from __future__ import print_function
import sys

name = 'hyp'
Expand Down

0 comments on commit d29715f

Please sign in to comment.