Skip to content

Commit 75b8add

Browse files
authored
Remove pypi release tag and simplify install instructions (luxonis#156)
* fix_pypi_release_tag * use latest versions for builds * skip numpy install (installed as opencv dependency) * add common install file * fix tag name in install ref * update ref label
1 parent eb767ed commit 75b8add

24 files changed

Lines changed: 33 additions & 199 deletions

docs/conf.py.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ copyright = u"@build_year@, Luxonis"
2323
author = "Luxonis"
2424
version = u"@DEPTHAI_PYTHON_VERSION@"
2525
release = version
26-
pypi_release = "2.0.0.1"
2726

2827

2928
# -- General configuration ---------------------------------------------------
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Please run the following command to install the required dependencies
2+
3+
.. code-block:: python
4+
:substitutions:
5+
6+
python3 -m pip install -U pip
7+
python3 -m pip install opencv-python
8+
python3 -m pip install -U --force-reinstall depthai
9+
10+
11+
For additional information, please follow :ref:`installation guide <Installation>`

docs/source/samples/01_rgb_preview.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,7 @@ Demo
1717
Setup
1818
#####
1919

20-
Please run the following command to install the required dependencies
21-
22-
.. code-block:: bash
23-
:substitutions:
24-
25-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
26-
27-
28-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
20+
.. include:: /includes/install_from_pypi.rst
2921

3022
Source code
3123
###########

docs/source/samples/02_mono_preview.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ Demo
1616
Setup
1717
#####
1818

19-
Please run the following command to install the required dependencies
20-
21-
.. code-block:: bash
22-
:substitutions:
23-
24-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
25-
26-
27-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
19+
.. include:: /includes/install_from_pypi.rst
2820

2921
Source code
3022
###########

docs/source/samples/03_depth_preview.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,7 @@ Demo
1717
Setup
1818
#####
1919

20-
Please run the following command to install the required dependencies
21-
22-
.. code-block:: bash
23-
:substitutions:
24-
25-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
26-
27-
28-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
20+
.. include:: /includes/install_from_pypi.rst
2921

3022
Source code
3123
###########

docs/source/samples/04_rgb_encoding.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ Demo
2525
Setup
2626
#####
2727

28-
Please run the following command to install the required dependencies
29-
30-
.. code-block:: bash
31-
:substitutions:
32-
33-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
34-
35-
36-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
28+
.. include:: /includes/install_from_pypi.rst
3729

3830
Source code
3931
###########

docs/source/samples/05_rgb_mono_encoding.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,7 @@ Demo
2323
Setup
2424
#####
2525

26-
Please run the following command to install the required dependencies
27-
28-
.. code-block:: bash
29-
:substitutions:
30-
31-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
32-
33-
34-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
26+
.. include:: /includes/install_from_pypi.rst
3527

3628
Source code
3729
###########

docs/source/samples/06_rgb_full_resolution_saver.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ Demo
2222
Setup
2323
#####
2424

25-
Please run the following command to install the required dependencies
26-
27-
.. code-block:: bash
28-
:substitutions:
29-
30-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
31-
32-
33-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
25+
.. include:: /includes/install_from_pypi.rst
3426

3527
Source code
3628
###########

docs/source/samples/07_mono_full_resolution_saver.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ Demo
1616
Setup
1717
#####
1818

19-
Please run the following command to install the required dependencies
20-
21-
.. code-block:: bash
22-
:substitutions:
23-
24-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
25-
26-
27-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
19+
.. include:: /includes/install_from_pypi.rst
2820

2921
Source code
3022
###########

docs/source/samples/08_rgb_mobilenet.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ Demo
1616
Setup
1717
#####
1818

19-
Please run the following command to install the required dependencies
20-
21-
.. code-block:: bash
22-
:substitutions:
23-
24-
python3 -m pip install depthai==2.0.0.1 numpy==1.19.5 opencv-python==4.5.1.48
25-
26-
27-
For additional information, please follow :ref:`Python API installation guide <Installation - Python>`
19+
.. include:: /includes/install_from_pypi.rst
2820

2921
This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
3022
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

0 commit comments

Comments
 (0)