Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit a81646d

Browse files
authored
Merge pull request #370 from ariddell/feature/prepare-2.17
Update Stan source, update boost library path
2 parents 4098464 + f7b075b commit a81646d

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

pystan/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def __init__(self, file=None, charset='utf-8', model_name="anon_model",
251251
os.path.join(pystan_dir, "stan", "src"),
252252
os.path.join(pystan_dir, "stan", "lib", "stan_math"),
253253
os.path.join(pystan_dir, "stan", "lib", "stan_math", "lib", "eigen_3.3.3"),
254-
os.path.join(pystan_dir, "stan", "lib", "stan_math", "lib", "boost_1.62.0"),
254+
os.path.join(pystan_dir, "stan", "lib", "stan_math", "lib", "boost_1.64.0"),
255255
os.path.join(pystan_dir, "stan", "lib", "stan_math", "lib", "cvodes_2.9.0", "include"),
256256
np.get_include(),
257257
]

pystan/stan

Submodule stan updated 220 files

pystan/tests/test_stanc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ def test_stanc(self):
1717
def test_stanc_exception(self):
1818
model_code = 'parameters {real z;} model {z ~ no_such_distribution();}'
1919
assertRaisesRegex = self.assertRaisesRegexp if PY2 else self.assertRaisesRegex
20-
with assertRaisesRegex(ValueError, 'Distribution .* not found\.'):
20+
# distribution not found error
21+
with assertRaisesRegex(ValueError, r'Probability function must end in _lpdf or _lpmf\. Found'):
2122
stanc(model_code=model_code)
22-
with assertRaisesRegex(ValueError, 'Distribution .* not found\.'):
23+
with assertRaisesRegex(ValueError, r'Probability function must end in _lpdf or _lpmf\. Found'):
2324
StanModel(model_code=model_code)
2425

2526
def test_stanc_exception_semicolon(self):

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,13 @@ def find_version(*parts):
101101
stan_include_dirs = ['pystan/stan/src',
102102
'pystan/stan/lib/stan_math/',
103103
'pystan/stan/lib/stan_math/lib/eigen_3.3.3',
104-
'pystan/stan/lib/stan_math/lib/boost_1.62.0',
104+
'pystan/stan/lib/stan_math/lib/boost_1.64.0',
105105
'pystan/stan/lib/stan_math/lib/cvodes_2.9.0/include']
106106
stan_macros = [
107-
('BOOST_RESULT_OF_USE_TR1', None),
108-
('BOOST_NO_DECLTYPE', None),
109107
('BOOST_DISABLE_ASSERTS', None),
108+
('BOOST_NO_DECLTYPE', None),
109+
('BOOST_PHOENIX_NO_VARIADIC_EXPRESSION', None), # needed for stanc
110+
('BOOST_RESULT_OF_USE_TR1', None),
110111
('FUSION_MAX_VECTOR_SIZE', 12), # for parser, stan-dev/pystan#222
111112
]
112113
extra_compile_args = [

0 commit comments

Comments
 (0)