Skip to content

Commit

Permalink
Merge pull request #704 from LBL-EESA/release-5.0.0
Browse files Browse the repository at this point in the history
PyPi package update for teca 5.0.0
  • Loading branch information
burlen authored Jun 13, 2022
2 parents 75b0882 + d517fa3 commit 9358a99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include *.*
recursive-include HAMR *.*
recursive-include CMake *.*
recursive-include system *.*
recursive-include core *.*
Expand Down
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
# when compiled outside of the git repo we must set the version
# manually. Also note that these must be unique per upload to PyPi
# so be sure to use an 'rcX' for testing
teca_version = "4.1.0"
teca_version = "5.0.0"

# Pre-release test procedure:
# python3 setup.py build_ext
# python3 setup.py install
# python3 setup.py sdist
# python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# python3 -mpip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple teca==X.Y.ZrcW

class CMakeExtension(Extension):
def __init__(self, name, sourcedir=''):
Expand All @@ -25,6 +32,7 @@ class CMakeBuild(build_ext):
('without-mpi', None, 'Disables MPI parallel features'),
('without-netcdf-mpi', None, 'Disables NetCDF "parallel 4" features'),
('with-cray-mpich', None, 'Sets the build up to use Cray MPICH'),
('with-cuda', None, 'Sets the build up to use CUDA'),
('with-teca-data=', None, 'Path to the TECA_data subversion repo'),
('with-netcdf=', None, 'Sets the path to a NetCDF install. This may be '
'necessary on MacOS, Ubuntu, and other systems '
Expand All @@ -41,6 +49,7 @@ def initialize_options(self):
self.without_mpi = False
self.without_netcdf_mpi = False
self.with_cray_mpich = False
self.with_cuda = False
self.with_teca_data = ''
self.with_netcdf = ''

Expand Down Expand Up @@ -105,6 +114,7 @@ def build_extension(self, ext):
'-DREQUIRE_MPI=%s' % ('FALSE' if self.without_mpi else 'TRUE'),
'-DENABLE_CRAY_MPICH=%s' % ('TRUE' if self.with_cray_mpich else 'FALSE'),
'-DREQUIRE_NETCDF_MPI=%s' % ('FALSE' if self.without_netcdf_mpi else 'TRUE'),
'-DREQUIRE_CUDA=%s' % ('TRUE' if self.with_cuda else 'FALSE'),
'-DREQUIRE_TECA_DATA=%s' % ('TRUE' if self.with_teca_data else 'FALSE'),
'-DTECA_VERSION=%s(PyPi)'%(teca_version)]

Expand Down

0 comments on commit 9358a99

Please sign in to comment.