-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpymod-extensions.cfg
35 lines (30 loc) · 1.13 KB
/
pymod-extensions.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# TODO: This is not yet enabled. Enable it.
# This will enable users to customise/extend (and if desired, override on a
# per-project basis, through the use of the "-Remove-" counterpart to each
# "-Add-" directive) the configuration options and auto-generated functionality
# that are currently hard-coded in the following files:
# - the auto-generated "pmgen/nim.cfg" generated by "pmgen.py"
# - the auto-generated "pmgen/pmgen*_wrap.nim.cfg" generated by "pmgen.py"
# - "pymodpkg/private/includes/realmacrodefs.nim"
# - "pymodpkg/private/impls.nim"
[all]
cCompilerAddFlag: -Wall
cCompilerAddFlag: -O3
cCompilerAddFlag: -fPIC
cLinkerAddFlag: -O3
cLinkerAddFlag: -fPIC
nimCompilerAddOption: listCmd
nimCompilerAddOption: parallelBuild:"1"
nimCompilerAddOption: verbosity:"2"
[Python]
cApiAddInclude: "<Python.h>"
cCompilerAddIncludePath: "/usr/include/python2.7"
cLinkerAddFlag: -lpython2.7
nimCompilerAddOption: "app:lib"
setPyModuleSuffix: .so
[Numpy]
cApiAddDefineBeforeIncludes: YES_IMPORT_ARRAY
cApiAddInclude: "pymodpkg/private/numpyarrayobject.h"
cApiAddInitStatement: "import_array();"
cApiQueueIncludeAfter: Python
#setIsAlwaysEnabled: true