# HG changeset patch # User Goffi # Date 1447089965 -3600 # Node ID 9596da27cd7c9aeca300de5edae4d914590816e8 # Parent 47c21905e002b2940ed457d285f6cc57332bd23d install: added jsdebug option to use debug mode with pyjsbuild, don't use it by default diff -r 47c21905e002 -r 9596da27cd7c setup.py --- 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)