Projects
OpenHPC4:4.1:Factory
mpi4py-gnu15-impi
_service:extract_file:python-mpi4py.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:python-mpi4py.spec of Package mpi4py-gnu15-impi
%define mpi_family impi %define compiler_family gnu15 #----------------------------------------------------------------------------bh- # This RPM .spec file is part of the OpenHPC project. # # It may have been modified from the default version supplied by the underlying # release package (if available) in order to apply patches, perform customized # build/install configurations, and supply additional files to support # desired integration conventions. # #----------------------------------------------------------------------------eh- # # spec file for package mpi4py # # Copyright (c) 2017 Kitware, Inc. # # mpi4py build that is dependent on compiler toolchain %define ohpc_compiler_dependent 1 %define ohpc_mpi_dependent 1 %define ohpc_python_dependent 1 %include %{_sourcedir}/OHPC_macros # Base package name %define pname mpi4py Name: %{python_prefix}-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} Version: 4.1.1 Release: 1%{?dist} Summary: Python bindings for the Message Passing Interface (MPI) standard. License: BSD-3-Clause Group: %{PROJ_NAME}/dev-tools Url: https://github.com/mpi4py/mpi4py Source0: https://github.com/mpi4py/mpi4py/releases/download/%{version}/mpi4py-%{version}.tar.gz Requires: lmod%{PROJ_DELIM} >= 7.6.1 BuildRequires: %{python_prefix}-Cython%{PROJ_DELIM} # Default library install path %define install_path %{OHPC_LIBS}/%{compiler_family}/%{mpi_family}/%{pname}/%version #!BuildIgnore: post-build-checks %description MPI4Py provides Python bindings for the Message Passing Interface (MPI) standard. It is implemented on top of the MPI-1/2/3 specification and exposes an API which grounds on the standard MPI-2 C++ bindings. %prep %setup -q -n %{pname}-%{version} %build # OpenHPC compiler/mpi designation %ohpc_setup_compiler %__python setup.py build %install # OpenHPC compiler/mpi designation %ohpc_setup_compiler %__python setup.py install --prefix=%{install_path} --root=%{buildroot} # The default python3 binary is too old. This package uses a newer # version than the default. Let's point the default python3 binary # to that newer version. %{__mkdir_p} %{buildroot}/%{install_path}/bin ln -sn %{__python} %{buildroot}/%{install_path}/bin/%{python_family} # OpenHPC module file %{__mkdir_p} %{buildroot}%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{python_module_prefix}%{pname} %{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{python_module_prefix}%{pname}/%{version} #%Module1.0##################################################################### proc ModulesHelp { } { puts stderr " " puts stderr "This module loads the %{python_prefix}-%{pname} library built with the %{compiler_family} compiler" puts stderr "toolchain and the %{mpi_family} MPI library." puts stderr "\nVersion %{version}\n" } module-whatis "Name: %{python_prefix}-%{pname} built with %{compiler_family} compiler and %{mpi_family}" module-whatis "Version: %{version}" module-whatis "Category: python module" module-whatis "Description: %{summary}" module-whatis "URL %{url}" family mpi4py set version %{version} prepend-path PATH %{install_path}/bin prepend-path PYTHONPATH %{install_path}/lib64/%{python_lib_dir}/site-packages setenv %{PNAME}_DIR %{install_path} EOF %{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{python_module_prefix}%{pname}/.version.%{version} #%Module1.0##################################################################### ## ## version file for %{python_module_prefix}%{pname}-%{version} ## set ModulesVersion "%{version}" EOF %files %{OHPC_PUB} %doc LICENSE.rst
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.