-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project name and remove unnecessary files
- Loading branch information
1 parent
484d22a
commit 50daea3
Showing
12 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,49 @@ | ||
project( | ||
'werpy_test_v4', | ||
'werpy_test_v5', | ||
'c', | ||
version : '0.0.1', | ||
default_options : ['warning_level=3']) | ||
|
||
py = import('python').find_installation(pure: false) | ||
# Find Python | ||
py = import('python').find_installation('python3') | ||
|
||
# Find Cython | ||
cython = find_program('cython') | ||
pyx_files = files('werpy_test_v4/metrics.pyx') | ||
|
||
# Cython files | ||
pyx_files = files('werpy_test_v5/metrics.pyx') | ||
|
||
# Compile Cython files | ||
c_files = custom_target('cythonize', | ||
output : 'metrics.c', | ||
input : pyx_files, | ||
command : [cython, '-3', '--fast-fail', '-o', '@OUTPUT@', '@INPUT@']) | ||
|
||
# Source files | ||
#sources = files( | ||
# 'werpy_test_v5/metrics.c' | ||
#) | ||
|
||
# Add the compiled Cython files to the sources | ||
#sources += c_files | ||
|
||
# Add NumPy include directories | ||
#numpy_includes = include_directories(py.get_install_dir() / 'numpy/core/include') | ||
#numpy_includes = include_directories('C:/Users/rossa/AppData/Local/Programs/Python/Python311/Lib/site-packages/numpy/core/include') | ||
# Find NumPy | ||
#numpy_dep = dependency('python3-numpy', method : 'pkg-config') | ||
# Find NumPy include directories | ||
numpy_includes = run_command(py, '-c', 'import numpy; print(numpy.get_include())').stdout().strip() | ||
|
||
|
||
|
||
# Cython module | ||
py.extension_module( | ||
'werpy_test_v4', | ||
'werpy_test_v5', | ||
# sources, | ||
c_files, | ||
# dependencies : numpy_dep, | ||
# include_directories : numpy_includes, | ||
include_directories : include_directories(numpy_includes), | ||
install : true | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.