Giter Club home page Giter Club logo

build-workflow-docs's Introduction

Steps to Build SWMM and PySWMM

Author: Constantine Karos and Bryant McDonnell

Date: May 16, 2023

Version: 1

Summary

PySWMM versions are built and released with a multi-step workflow and requires several tools and GitHub repositories. PySWMM has a layered architecture where C and Python are used. The core is SWMM which is outfitted with an extended API. Using a tool called SWIG (Simple Wrapper Interface Generator), "typemaps" are used to clearly insert the required Python-C code (since Python is written in C) to the build and compile the library. In the final layer, PySWMM abstracts away the "C" feel and makes it Pythonic by implementing an object-oriented paradigm. See the following Figure. The project is organized into several repositories on GitHub. They span from the raw-codebases, the build process, to the testing systems.

pyswmm-layers

Requirements and Resources

Machine/Compiler Requirements
Windows 2022 Ubuntu-20.04 macOS-10.15
Compiler Visual Studio 17 2022 gcc clang / Xcode
CPU - - Intel, Only (M1/M2, Coming)
Is Experimental ? False True True
Software Requirements
Windows 2022 Ubuntu-20.04 macOS-10.15
cmake
python>=3.6,<=3.11
swig
boost
Git/Github account

High-level Steps

SWMM/SWMM-API
  1. Install all required software
  2. Clone the SWMM repo
  3. Clone the ci-tools
  4. Make your changes to SWMM (optional)
  5. Adding Unit Tests
  6. Building SWMM
  7. Running Regression Tests
SWMM-TOOLKIT
  1. Clone the SWMM-Python repo
  2. Modify (as required) the interfacing files
  3. Build Wheel (Will compile SWMM here)
PySWMM
  1. Clone the PySWMM repo
  2. Modify (as required)
  3. Adding Unit tests
  4. Build

SWMM/SWMM-API Build Steps

SWMM-TOOLKIT

PySWMM

build-workflow-docs's People

Contributors

bemcdonnell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.