Commit 11dba4e6 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

cleanup

parent f657a437
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
_skbuild/
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
docs/output.txt
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# dotenv
.env
# virtualenv
.venv
venv/
ENV/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
tags
/test_*
# own stuff
info/
# Cython generated C code
*.c
*.cpp
# generated version file
gstools/_version.py
# generated docs
docs/source/examples/
docs/source/generated/
*.DS_Store
*.zip
*.vtu
*.vtr
*.vtk
......@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.12.0)
project(globals_fortran)
enable_language(Fortran)
find_package(PythonExtensions REQUIRED)
find_package(NumPy REQUIRED)
find_package(F2PY REQUIRED)
find_package(Python3 REQUIRED COMPONENTS NumPy)
add_subdirectory(wrap_lib)
[build-system]
requires = ["setuptools>=42", "wheel", "scikit-build", "cmake", "ninja", "numpy"]
requires = ["setuptools>=42", "wheel", "scikit-build", "cmake", "ninja", "oldest_supported_numpy"]
import sys
import site
from skbuild import setup
# Require pytest-runner only when running tests
pytest_runner = (['pytest-runner>=2.0,<3dev']
if any(arg in sys.argv for arg in ('pytest', 'test'))
else [])
setup_requires = pytest_runner
# pip issue: https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
setup(
name="wrap_lib",
......@@ -17,6 +14,4 @@ setup(
license="MIT",
packages=['wrap_lib'],
install_requires=['numpy'],
tests_require=['pytest'],
setup_requires=setup_requires
)
import warp_lib
def test_set():
warp_lib.set_globals(10, 20.0, [1., 2., 3.])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment