-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from OpenWaterAnalytics/hotfix-interim
Hotfix interim
- Loading branch information
Showing
12 changed files
with
256 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
|
||
|
||
setuptools==41.4.0 | ||
wheel==0.33.6 | ||
scikit-build==0.11.1 | ||
cmake==3.18.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# CMakeLists.txt - CMake configuration file for OpenMP Library on Darwin | ||
# | ||
# Created: Mar 17, 2021 | ||
# Updated: May 19, 2021 | ||
# | ||
# Author: Michael E. Tryby | ||
# US EPA ORD/CESER | ||
# | ||
# Note: | ||
# Need to build libomp for binary compatibility with Python. | ||
# | ||
# OpenMP library build fails for Xcode generator. Use Ninja or Unix Makefiles | ||
# instead. | ||
# | ||
|
||
################################################################################ | ||
##################### CMAKELISTS FOR OPENMP LIBRARY ###################### | ||
################################################################################ | ||
|
||
include(FetchContent) | ||
|
||
|
||
FetchContent_Declare(OpenMP | ||
URL | ||
https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/openmp-11.1.0.src.tar.xz | ||
URL_HASH | ||
SHA256=d187483b75b39acb3ff8ea1b7d98524d95322e3cb148842957e9b0fbb866052e | ||
) | ||
|
||
set(OPENMP_STANDALONE_BUILD TRUE) | ||
set(LIBOMP_INSTALL_ALIASES OFF) | ||
|
||
FetchContent_MakeAvailable(OpenMP) | ||
set(OpenMP_AVAILABLE TRUE) | ||
|
||
|
||
target_link_directories(omp | ||
PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/_deps/openmp-build/runtime/src> | ||
$<INSTALL_INTERFACE:${LIBRARY_DIST}> | ||
) | ||
|
||
install(TARGETS omp | ||
LIBRARY | ||
DESTINATION | ||
"${LIBRARY_DIST}" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# setup.py - Setup script for swmm-toolkit python package | ||
# | ||
# Created: Jul 2, 2018 | ||
# Updated: May 7, 2020 | ||
# Updated: Jun 7, 2021 | ||
# | ||
# Author: See AUTHORS | ||
# | ||
|
@@ -56,12 +56,19 @@ def run(self): | |
p.wait() | ||
|
||
|
||
# Set up location of wheel libraries depending on build platform | ||
if platform_system == "Windows": | ||
package_dir = {"swmm_toolkit":"bin", "swmm.toolkit": "src/swmm/toolkit"} | ||
else: | ||
package_dir = {"swmm_toolkit":"lib", "swmm.toolkit": "src/swmm/toolkit"} | ||
|
||
|
||
# Set Platform specific cmake args here | ||
if platform_system == "Windows": | ||
cmake_args = ["-GVisual Studio 15 2017 Win64"] | ||
|
||
elif platform_system == "Darwin": | ||
cmake_args = ["-GXcode","-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.10"] | ||
cmake_args = ["-GNinja","-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9"] | ||
|
||
else: | ||
cmake_args = ["-GUnix Makefiles"] | ||
|
@@ -74,32 +81,30 @@ def exclude_files(cmake_manifest): | |
return list(filter(lambda name: not (name.endswith(exclude_pats)), cmake_manifest)) | ||
|
||
|
||
|
||
# Get the long description from the README file | ||
here = pathlib.Path(__file__).parent.resolve() | ||
long_description = (here / 'README.md').read_text(encoding='utf-8') | ||
|
||
|
||
setup( | ||
name = "swmm-toolkit", | ||
version = "0.8.1", | ||
version = "0.8.2", | ||
|
||
packages = ["swmm.toolkit"], | ||
package_dir = {"": "src"}, | ||
packages = ["swmm_toolkit", "swmm.toolkit"], | ||
package_dir = package_dir, | ||
|
||
zip_safe = False, | ||
install_requires = ["aenum"], | ||
install_requires = ["aenum==2.2.6"], | ||
|
||
cmdclass = {"clean": CleanCommand}, | ||
cmake_args = cmake_args, | ||
cmake_process_manifest_hook = exclude_files, | ||
|
||
|
||
description='OWA SWMM Python Toolkit', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/OpenWaterAnalytics/swmm-python', | ||
|
||
author='See AUTHORS', | ||
maintainer_email='[email protected]', | ||
license='CC0', | ||
|
@@ -114,6 +119,7 @@ def exclude_files(cmake_manifest): | |
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: C", | ||
"Development Status :: 4 - Beta", | ||
] | ||
|
Oops, something went wrong.