Skip to content

Commit cc2fdac

Browse files
committed
Adjust installation documentation
1 parent 42b122d commit cc2fdac

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/source/python.rst

+13-13
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ Installation
2121

2222
Python.NET is available as a source release on
2323
`GitHub <https://github.com/pythonnet/pythonnet/releases>`__ and as a
24-
binary wheel or source distribution from the `Python Package
25-
Index <https://pypi.python.org/pypi/pythonnet>`__.
26-
27-
The source release is a self-contained “private” assembly. Just unzip
28-
the package wherever you want it, cd to that directory, build the
29-
solution ``python setup.py build_ext --inplace``. Once you start up
30-
Python or IPython interpreter in this directory or append this directory
31-
to ``sys.path``, then after ``import clr`` statement .NET assemblies can
32-
be used. You can also run ``nPython.exe`` (``mono nPython.exe`` on
33-
``*nix``) to check how python can be embedded in console .NET
34-
application. Note that the source release does not include a copy of the
35-
CPython runtime, so you will need to have installed Python on your
36-
machine before using the source release.
24+
platform-independent binary wheel or source distribution from the `Python
25+
Package Index <https://pypi.python.org/pypi/pythonnet>`__.
26+
27+
Installing from PyPI can be done using ``pip install pythonnet``.
28+
29+
To build from source (either the ``sdist`` or clone or snapshot of the
30+
repository), only the .NET6 SDK (or newer) and Python itself are required. If
31+
``dotnet`` is on the ``PATH``, building can be done using
32+
33+
.. code:: bash
34+
35+
python setup.py build
36+
3737
3838
Loading a Runtime
3939
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)