Skip to content

Commit 8ab0a23

Browse files
committed
conversion of cmake script to scikit-build to automate building python package
1 parent de701bf commit 8ab0a23

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+227
-2602
lines changed

CMakeLists.txt

+106-211
Large diffs are not rendered by default.

CMakeVersion.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
################################################################################
3+
# Read and set the library version
4+
################################################################################
5+
FILE(READ "esl/version" version_header)
6+
7+
STRING(REGEX MATCH "[0-9a-zA-Z_]*ESL_VERSION_MAJOR[ \t]*=[ \t]*([0-9]+)"
8+
_ ${version_header})
9+
SET(version_major ${CMAKE_MATCH_1})
10+
11+
STRING(REGEX MATCH "[0-9a-zA-Z_]*ESL_VERSION_MINOR[ \t]*=[ \t]*([0-9]+)"
12+
_ ${version_header})
13+
SET(version_minor ${CMAKE_MATCH_1})
14+
15+
STRING(REGEX MATCH "[0-9a-zA-Z_]*ESL_VERSION_REVISION[ \t]*=[ \t]*([0-9]+)"
16+
_ ${version_header})
17+
SET(version_revision ${CMAKE_MATCH_1})
18+
19+
# Enable new behaviour on this policy so we can set the version automatically.
20+
# enables compatibility with older versions of cmake
21+
CMAKE_POLICY(SET CMP0048 NEW)

esl/__init__.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
#
2525
import sys
2626

27-
# main module
28-
try:
29-
from esl._esl import *
30-
except ImportError:
31-
raise ModuleNotFoundError("Can't find ESL native module, did the compilation succeed?")
27+
from esl._esl import *
3228

33-
# submodules
34-
from esl.simulation import *
29+
from esl.simulation import *

esl/agent.py

-26
This file was deleted.

esl/algorithms.py

Whitespace-only changes.

esl/computation/distributed/mpi_environment.py

-91
This file was deleted.

esl/computation/distributed/protocol.py

-69
This file was deleted.

esl/computation/environment.py

-75
This file was deleted.

esl/computation/timing.py

-9
This file was deleted.

esl/data/output.py

-12
This file was deleted.

esl/data/output_base.py

-8
This file was deleted.

esl/data/producer.py

-12
This file was deleted.

esl/economics/accounting/inventory.py

-41
This file was deleted.

0 commit comments

Comments
 (0)