Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8ad9e2

Browse files
authored
Merge pull request baijum#88 from lauromoura/install-from-source
Add section on installing from source
2 parents 05fd35e + 7939843 commit d8ad9e2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

source/installation.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,28 @@ provide a relative or absolute path to Selenium server jar file.
122122
Then, the command will look something like this::
123123

124124
/path/to/java -jar /path/to/selenium-server-standalone-2.x.x.jar
125+
126+
127+
Installing from Git sources
128+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
129+
130+
To build Selenium Python from the source code, clone `the official repository
131+
<https://github.com/SeleniumHQ/selenium.git>`_. It contains the source code for
132+
all official Selenium flavors, like Python, Java, Ruby and others. The Python
133+
code resides in the ``/py`` directory. To build, you will also need the `Bazel
134+
<https://www.bazel.build>`_ build system.
135+
136+
.. note::
137+
138+
Currently, as Selenium gets near to the 4.0.0 release, it requires Bazel 3.2.0
139+
(`Install instructions <https://docs.bazel.build/versions/3.2.0/install.html>`_),
140+
even though 3.3.0 is already available.
141+
142+
To build a Wheel from the sources, run the following command from the repository
143+
root::
144+
145+
bazel //py:selenium-wheel
146+
147+
This command will prepare the source code with some preprocessed JS files needed
148+
by some webdriver modules and build the ``.whl`` package inside the
149+
``./bazel-bin/py/`` directory. Afterwards, you can use ``pip`` to install it.

0 commit comments

Comments
 (0)