Set the path to virtualenvs in the Makefile

Also, version the virtualenv
This commit is contained in:
Javier Goizueta
2016-03-09 19:04:21 +01:00
parent 1810f02242
commit 0056f411b5
5 changed files with 45 additions and 19 deletions

View File

@@ -0,0 +1,10 @@
-- Internal function.
-- Set the seeds of the RNGs (Random Number Generators)
-- used internally.
CREATE OR REPLACE FUNCTION
_cdb_random_seeds (seed_value INTEGER) RETURNS VOID
AS $$
plpy.execute('SELECT cdb_crankshaft._cdb_crankshaft_activate_py()')
from crankshaft import random_seeds
random_seeds.set_random_seeds(seed_value)
$$ LANGUAGE plpythonu;