Skip to content
Snippets Groups Projects
Commit 28535464 authored by Stefan Possanner's avatar Stefan Possanner
Browse files

Merge branch 'pyccel-flag' into 'master'

Add compile flag `--conda-warnings off` only if pyccel version is 1.8.0 or greater.

See merge request !17
parents c195d516 09970cf8
No related branches found
No related tags found
1 merge request!17Add compile flag `--conda-warnings off` only if pyccel version is 1.8.0 or greater.
Pipeline #172442 passed
## Version 1.1.2
## Version 1.1.3
* Move to gvec group
\ No newline at end of file
* Add compile flag `--conda-warnings off` only if pyccel version is 1.8.0 or greater.
\ No newline at end of file
......@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "gvec-to-python"
version = "1.1.2"
version = "1.1.3"
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE"}
......
......@@ -5,7 +5,7 @@
PYTHON := python3
SO_EXT := $(shell $(PYTHON) -c "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))")
LIBDIR := $(shell $(PYTHON) -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
FLAGS := --libdir $(LIBDIR) --conda-warnings off
FLAGS := --libdir $(LIBDIR) $(flags)
#--------------------------------------
# SOURCE FILES
......
......@@ -3,13 +3,23 @@ def compile_gvec_to_python():
import subprocess
import os
import gvec_to_python
import pyccel
libpath = gvec_to_python.__path__[0]
# pyccel flags
flags = ''
_li = pyccel.__version__.split('.')
_num = int(_li[0])*100 + int(_li[1])*10 + int(_li[2])
if _num >= 180:
flags += '--conda-warnings off'
print('\nCompiling gvec-to-python kernels ...')
subprocess.run(['make',
'-f',
os.path.join(libpath, 'Makefile'),
'flags=' + flags,
'install_path=' + libpath,
], check=True, cwd=libpath)
print('Done.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment