This page contains relevant information to build the NBMs for a new release of NBPython.

Building beta NBMs

We currently build the beta NBMs on NetBeans 8.2. To do that, fetch the code from http://hg.netbeans.org/releases and update to this commit:

NetBeans Releases build commit
changeset:   5fd841261bf9
branch:      release82
parent:      311883:2efc70ea47d6
user:        Tomas Stupka <tstupka@netbeans.org>
date:        Thu Sep 29 16:04:18 2016 +0200
summary:     Issue #268252 - The Run property is duplicated in the properties tree.

Then move in the repository you just cloned and clone either

Finally run at the root of the cloned directory, the script detailed below:

Build script
#!/usr/bin/env bash

set -u
set -e

if [[ ! -d nbbuild ]]; then
    echo "Launch this in nbbuild dir." >&2
    exit 1
fi

unset JRE_HOME JAVA_BINDIR JAVA_HOME SDK_HOME JDK_HOME JAVA_ROOT
export JAVA_HOME=/usr/lib/jvm/java/
export ANT_HOME=/usr/share/ant/
export ANT_OPTS="-Xmx6048m -XX:MaxPermSize=3384m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/antdump.txt -Dcluster.config=python"

rm -rf nbbuild/nbms
ant -Dcluster.config=python build-nonsigned-nbms

When prompted for a passphrase, simply press enter.

Once this is done, you can get the NBMs from the nbbuild/nbms/extra folder.

Credits

This page was imported from the nbpython wiki (https://nbpython.atlassian.net/wiki/spaces/N8/pages/36057071/Releases). Contributors: