Compiling and/or packaging the dryadd script

While binaries for Windows, Mac and Linux are supplied, should you wish to create them yourself from the dryadd.py script, you can so so following the procedure below. This can be done with either nuitka or PyInstaller.

Note that nuitka will compile to a C application, but PyInstaller packages everything to create a standalone application that is not a pure C application. Whether this matters is open for debate.

Windows

With nuitka:

nuitka --onefile --windows-product-name=dryadd --windows-product-version=0.1.1 --windows-company-name="University of British Columbia Library"  \path\to\dryad2dataverse\scripts\dryadd.py

Note that the –windows-product-[x] options are required, but there’s nothing preventing you from using whatever information you prefer. Also, the version string listed on this page is only an example; use the current version.

with PyInstaller:

python -m PyInstaller -F \path\to\dryad2dataverse\scripts\dryadd.py

Mac and Linux

with nuitka:

nuitka --onefile /path/to/dryad2dataverse/scripts/dryadd.py

Note that with some installations of linux, you may be required to supply a Python icon if one is not found on your system. Either download or create one (and a PNG will work) and suppy it with --linux-onefile-icon=ICON_PATH

with PyInstaller:

python -m PyInstaller -F \path\to\dryad2dataverse\scripts\dryadd.py