Skip to content

Commit

Permalink
Layout of file 'setup_python.py' modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianSteger committed Mar 1, 2022
1 parent 5a29d82 commit 51a83ed
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions setup_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,15 @@
import importlib
import py_compile

###############################################################################
# Check availability of external packages
###############################################################################

# List of packages
packages = ("numpy", "scipy", "geographiclib", "pyproj", "osgeo",
"shapely", "fiona", "pygeos", "skimage")

# Check if available
for i in packages:
if importlib.util.find_spec(i) is None:
raise ImportError("Package " + i + " not installed")
print("All required Python packages are available.")

###############################################################################
# Compile functions
###############################################################################

py_compile.compile("src/auxiliary.py", cfile="lib/auxiliary.pyc")
py_compile.compile("src/geoid.py", cfile="lib/geoid.pyc")
py_compile.compile("src/load_dem.py", cfile="lib/load_dem.pyc")
Expand Down

0 comments on commit 51a83ed

Please sign in to comment.