the vanilla setup-tools doesn't get the triplet correctly for some reason. also use cmake from pip as cmake 3.16 in the image has a bug in the python find rule
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
from skbuild import setup
|
|
|
|
import os
|
|
|
|
setupdir = os.path.dirname(__file__)
|
|
if setupdir != '':
|
|
os.chdir( setupdir )
|
|
|
|
with open("README.md", "r") as fh:
|
|
long_description = fh.read()
|
|
|
|
setup(
|
|
name='opm',
|
|
version = '@opm-common_VERSION@' + '@opm-common_PYTHON_PACKAGE_VERSION@',
|
|
url='http://www.opm-project.org',
|
|
author='The Open Porous Media Project',
|
|
author_email='opmuser@gmail.com',
|
|
description='OPM-Common Python bindings',
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
packages=[
|
|
'opm',
|
|
'opm.io',
|
|
'opm.io.deck',
|
|
'opm.io.ecl_state',
|
|
'opm.io.parser',
|
|
'opm.io.schedule',
|
|
'opm.io.ecl',
|
|
'opm.tools',
|
|
'opm.util'
|
|
],
|
|
package_data={'opm' : ['$<TARGET_FILE_NAME:opmcommon_python>']},
|
|
include_package_data=True,
|
|
license='Open Source',
|
|
test_suite='tests',
|
|
setup_requires=["pytest-runner", 'setuptools_scm'],
|
|
python_requires='>=3.6',
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
],
|
|
)
|