|
| 1 | +Orange development |
| 2 | +================== |
| 3 | + |
| 4 | +The source code of [Orange] is versioned in [Git] and hosted on [GitHub]. |
| 5 | +If you want to contribute to this open-source project you will have to use git. However, for minor experimentation with the source code you can also get by without. |
| 6 | + |
| 7 | +[Orange]: https://orange.biolab.si/ |
| 8 | +[Git]: https://git-scm.com/ |
| 9 | +[GitHub]: https://github.com/biolab/orange |
| 10 | + |
| 11 | +Prerequisites |
| 12 | +------------- |
| 13 | + |
| 14 | +[Orange] is written mostly in Python, therefore you'll need [Python 3] version 3.6 or newer. |
| 15 | + |
| 16 | +You will also need a C/C++ compiler. On Windows, you can get one by installing [Visual Studio]. |
| 17 | +A slightly more "minimalistic" option is to install only its [Build Tools]. |
| 18 | + |
| 19 | +[Python 3]: https://www.python.org |
| 20 | +[Visual Studio]: https://visualstudio.microsoft.com/vs/ |
| 21 | +[Build Tools]: https://visualstudio.microsoft.com/visual-cpp-build-tools/ |
| 22 | + |
| 23 | +Source code |
| 24 | +----------- |
| 25 | + |
| 26 | +Get the source code by cloning the git repository |
| 27 | + |
| 28 | + git clone https://github.com/biolab/orange3.git |
| 29 | + |
| 30 | +or, alternatively, download and unpack the [ZIP archive] of the source code from [GitHub]. |
| 31 | + |
| 32 | +[ZIP archive]: https://github.com/biolab/orange3/archive/master.zip |
| 33 | + |
| 34 | +Building |
| 35 | +-------- |
| 36 | + |
| 37 | +Consider using virtual environments to avoid package conflicts. |
| 38 | + |
| 39 | +Install the required Python packages |
| 40 | + |
| 41 | + pip install -r requirements.txt |
| 42 | + |
| 43 | +and run the setup script with a development option, which will link to the source code instead of creating a new package in Python's site-packages. |
| 44 | + |
| 45 | + python setup.py develop |
| 46 | + |
| 47 | +Verify the installation by importing the Orange package from Python and loading an example Iris dataset. |
| 48 | + |
| 49 | + >>> import Orange |
| 50 | + >>> print(Orange.data.Table("iris")[0]) |
| 51 | + [5.1, 3.5, 1.4, 0.2 | Iris-setosa] |
| 52 | + |
| 53 | +Using the graphic user interface requires some additional packages |
| 54 | + |
| 55 | + pip install -r requirements-gui.txt |
| 56 | + |
| 57 | +and Qt dependencies. |
| 58 | + |
| 59 | + pip install PyQt5 PyQtWebEngine |
| 60 | + |
| 61 | +To start Orange GUI from the command line, run: |
| 62 | + |
| 63 | + python3 -m Orange.canvas |
| 64 | + |
| 65 | +Contributing |
| 66 | +------------ |
| 67 | + |
| 68 | +If you've made improvements that you want to contribute, you'll need your own fork of the [GitHub] repository. After committing and pushing changes to your fork, you can create a pull request. We will review your contribution and hopefully merge it after any potential corrections. |
| 69 | + |
| 70 | +You can view the list of open [pull requests] and known [issues] on GitHub. |
| 71 | + |
| 72 | +[pull requests]: https://github.com/biolab/orange3/pulls |
| 73 | +[issues]: https://github.com/biolab/orange3/issues |
0 commit comments