Mercurial > libervia-web
diff setup.py @ 732:9596da27cd7c
install: added jsdebug option to use debug mode with pyjsbuild, don't use it by default
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 09 Nov 2015 18:26:05 +0100 |
parents | b2465423c76e |
children | 0af8a88ef6cd |
line wrap: on
line diff
--- a/setup.py Thu Oct 22 14:26:00 2015 +0200 +++ b/setup.py Mon Nov 09 18:26:05 2015 +0100 @@ -57,6 +57,7 @@ LAUNCH_DAEMON_COMMAND = 'libervia' ENV_LIBERVIA_INSTALL = "LIBERVIA_INSTALL" # environment variable to customise installation +JS_DEBUG = "jsdebug" # use debug mode with pyjsbuild NO_PREINSTALL_OPT = 'nopreinstall' # skip all preinstallation checks AUTO_DEB_OPT = 'autodeb' # automaticaly install debs CLEAN_OPT = 'clean' # remove previous installation directories @@ -120,7 +121,8 @@ os.symlink(os.path.dirname(sat_frontends.__file__), os.path.join(tmp_dir,"sat_frontends")) # FIXME: only work on unixes os.symlink(os.path.dirname(libervia.__file__), os.path.join(tmp_dir,"libervia")) # FIXME: only work on unixes for module in ('libervia_main', 'libervia_test'): - result = subprocess.call(['pyjsbuild', module, '-d', '--no-compile-inplace', '-I', tmp_dir, '-o', self.pyjamas_output_dir]) + build_args = ['pyjsbuild', module] + (['-d'] if JS_DEBUG in install_opt else []) + ['--no-compile-inplace', '-I', tmp_dir, '-o', self.pyjamas_output_dir] + result = subprocess.call(build_args) if result != 0: continue shutil.rmtree(tmp_dir)