Skip to content

Commit

Permalink
[MOD] - updated osx runner to osx-14
Browse files Browse the repository at this point in the history
  • Loading branch information
lpossner committed Jul 16, 2024
1 parent b1b2199 commit 97019b3
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.twine_api_key }}
TWINE_USERNAME: __token__
macos:
runs-on: macos-11
runs-on: macos-14
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand Down
88 changes: 51 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,57 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>

openmp_compile_args = ['-fopenmp']
openmp_link_args = ['-lgomp']
pygpc_extensions_src_file_path = [os.path.join('pckg', 'pygpc_extensions',
'src', 'pygpc_extensions.cpp')]
pygpc_extensions_include_path = [os.path.join('pckg', 'pygpc_extensions',
'include'), np.get_include()]
openmp_compile_args = ["-fopenmp"]
openmp_link_args = ["-lgomp"]
pygpc_extensions_src_file_path = [
os.path.join("pckg", "pygpc_extensions", "src", "pygpc_extensions.cpp")
]
pygpc_extensions_include_path = [
os.path.join("pckg", "pygpc_extensions", "include"),
np.get_include(),
]

if sys.platform == 'darwin':
extensions = []
else:
extensions = [Extension('pygpc.pygpc_extensions',
sources=pygpc_extensions_src_file_path,
include_dirs=pygpc_extensions_include_path,
extra_compile_args=openmp_compile_args,
extra_link_args=openmp_link_args)]
# if sys.platform == 'darwin':
# extensions = []
# else:
# extensions = [Extension('pygpc.pygpc_extensions',
# sources=pygpc_extensions_src_file_path,
# include_dirs=pygpc_extensions_include_path,
# extra_compile_args=openmp_compile_args,
# extra_link_args=openmp_link_args)]

setup(name='pygpc',
version='0.3.9',
description='A sensitivity and uncertainty analysis toolbox for Python',
author='Konstantin Weise',
author_email='[email protected]',
license='GPL3',
packages=find_packages(exclude=['tests',
'tests.*',
'templates',
'templates.*']),
install_requires=['scipy',
'numpy',
'scikit-learn',
'h5py',
'tqdm',
'pandas',
],
ext_modules=extensions,
package_data={'pygpc': ['*.so', '*.dll', '*.dylib']},
project_urls={
extensions = [
Extension(
"pygpc.pygpc_extensions",
sources=pygpc_extensions_src_file_path,
include_dirs=pygpc_extensions_include_path,
extra_compile_args=openmp_compile_args,
extra_link_args=openmp_link_args,
)
]

setup(
name="pygpc",
version="0.3.9",
description="A sensitivity and uncertainty analysis toolbox for Python",
author="Konstantin Weise",
author_email="[email protected]",
license="GPL3",
packages=find_packages(exclude=["tests", "tests.*", "templates", "templates.*"]),
install_requires=[
"scipy",
"numpy",
"scikit-learn",
"h5py",
"tqdm",
"pandas",
],
ext_modules=extensions,
package_data={"pygpc": ["*.so", "*.dll", "*.dylib"]},
project_urls={
"Documentation": "https://pygpc.readthedocs.io/en/latest/",
"Source Code": "https://github.com/pygpc-polynomial-chaos/pygpc"},
zip_safe=False,
include_package_data=True)
"Source Code": "https://github.com/pygpc-polynomial-chaos/pygpc",
},
zip_safe=False,
include_package_data=True,
)

0 comments on commit 97019b3

Please sign in to comment.