forked from mih/Psignifit-3.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows_setup.py
45 lines (37 loc) · 1.14 KB
/
windows_setup.py
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
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
# encoding: utf-8
# vi: set ft=python sts=4 ts=4 sw=4 et:
######################################################################
#
# See COPYING file distributed along with the psignifit package for
# the copyright and license terms
#
######################################################################
""" Windows specific setup.py for Psignifit 3.x
Instead of linking to a shared library like in `setup.py`, all of Psi++ is
compiled into the extension.
"""
# other imports, metadata and extension definition
from setup import *
# Psi++ source files
psipp_sources = [
"src/bootstrap.cc",
"src/core.cc",
"src/data.cc",
"src/mclist.cc",
"src/mcmc.cc",
"src/optimizer.cc",
"src/psychometric.cc",
"src/rng.cc",
"src/sigmoid.cc",
"src/special.cc",
"src/linalg.cc",
"src/getstart.cc",
"src/prior.cc",
"src/integrate.cc"]
# swignifit interface, override the definition in `setup.py`
swignifit = Extension('swignifit._swignifit_raw',
sources = psipp_sources + swignifit_sources,
include_dirs=["src"])
if __name__ == "__main__":
main(ext_modules=[swignifit])