Skip to content

Commit

Permalink
Merge pull request #46 from petebankhead/dev
Browse files Browse the repository at this point in the history
Towards v0.4
  • Loading branch information
petebankhead committed Sep 5, 2022
2 parents 5fef175 + 069d508 commit 2c2eaeb
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 46 deletions.
8 changes: 4 additions & 4 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# -- Project information -----------------------------------------------------

project = 'QuPath'
copyright = '2019-2021, QuPath docs authors'
copyright = '2019-2022, QuPath docs authors'
author = 'QuPath docs authors'


Expand All @@ -30,7 +30,7 @@
extensions = [
'myst_parser',
'sphinx_rtd_theme',
'sphinx_panels',
'sphinx_design',
'sphinx.ext.autosectionlabel',
'sphinx_search.extension'
]
Expand Down Expand Up @@ -85,5 +85,5 @@

html_favicon = 'docs/images/QuPath.ico'

release = '0.3.0'
version = '0.3'
release = '0.4.0'
version = '0.4'
82 changes: 45 additions & 37 deletions docs/reference/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,27 @@ If you're moderately comfortable working from a command line, there's not much r

1. Install git, e.g. from https://git-scm.com

2. Install OpenJDK 16, e.g. from https://adoptopenjdk.net
2. Install OpenJDK 17, e.g. from `adoptium.net <https://adoptium.net/en-GB/temurin/releases/?version=17>`__

3. Open a command prompt in an empty directory and run the following:

.. tabbed:: Windows
.. tab-set::

.. code-block:: bash
git clone https://github.com/qupath/qupath
cd qupath
gradlew clean jpackage
.. tab-item:: Windows

.. code-block:: bash
.. tabbed:: macOS/Linux
git clone https://github.com/qupath/qupath
cd qupath
gradlew clean jpackage
.. tab-item:: macOS/Linux

.. code-block:: bash
git clone https://github.com/qupath/qupath
cd qupath
./gradlew clean jpackage
.. code-block:: bash
git clone https://github.com/qupath/qupath
cd qupath
./gradlew clean jpackage
It will take a few minutes to download everything required and build the software.
If all goes well, you should see a triumphant message that the build was successful.
Expand Down Expand Up @@ -69,17 +71,19 @@ Creating installers

If you need to create an installer for QuPath, you can use

.. tabbed:: Windows
.. tab-set::

.. code-block:: bash
gradlew clean jpackage -P package=installer
.. tab-item:: Windows

.. code-block:: bash
.. tabbed:: macOS/Linux
gradlew clean jpackage -P package=installer
.. tab-item:: macOS/Linux

.. code-block:: bash
./gradlew clean jpackage -P package=installer
.. code-block:: bash
./gradlew clean jpackage -P package=installer
Note that for this to work on Windows you'll need to install `WIX Toolset`_.
Expand All @@ -97,17 +101,19 @@ The answer, currently, is 'no'.

However, it is possible to build QuPath with support for CUDA via OpenCV and JavaCPP by using the `-Pcuda` or `-Pcuda-redist` options.

.. tabbed:: Windows
.. tab-set::

.. code-block:: bash
gradlew clean jpackage -Pcuda-redist
.. tab-item:: Windows

.. code-block:: bash
.. tabbed:: Linux
gradlew clean jpackage -Pcuda-redist
.. tab-item:: Linux

.. code-block:: bash
./gradlew clean jpackage -Pcuda-redist
.. code-block:: bash
./gradlew clean jpackage -Pcuda-redist
You should use `-Pcuda` if you want to use your own CUDA installation (which needs to be the correct version to match JavaCPP's OpenCV distribution), and `-Pcuda-redist` if you want to download the necessary files automatically.
Before doing so you should check out the licensing terms for CUDA at https://github.com/bytedeco/javacpp-presets/tree/master/cuda
Expand Down Expand Up @@ -171,17 +177,19 @@ You can now open a command prompt in the correct directory directly from GitHub

Finally, the command needed to build QuPath is then the same as above:

.. tabbed:: Windows
.. tab-set::

.. code-block:: bash
gradlew clean jpackage
.. tab-item:: Windows

.. code-block:: bash
.. tabbed:: macOS/Linux
gradlew clean jpackage
.. tab-item:: macOS/Linux

.. code-block:: bash
./gradlew clean jpackage
.. code-block:: bash
./gradlew clean jpackage
.. admonition:: Updating the code

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/pixel_classification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ You can then user the classifier to make fine-grained measurements within these


Handling variation
******************
==================

Variation represents probably the biggest challenge to applying image analysis and machine learning in practice.

Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
readthedocs-sphinx-search==0.1.0
myst-parser==0.15.1
sphinx-rtd-theme==0.5.2
sphinx-panels==0.6.0
readthedocs-sphinx-search==0.1.2
myst-parser==0.18.0
sphinx-rtd-theme==1.0.0
sphinx-design==0.3.0

0 comments on commit 2c2eaeb

Please sign in to comment.