8000 Documentation by filmor · Pull Request #1863 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Documentation #1863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adjust installation documentation
  • Loading branch information
filmor committed Sep 26, 2022
commit cc2fdac3411c68289643a9e5a65112f5e8d747fa
26 changes: 13 additions & 13 deletions doc/source/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ Installation

Python.NET is available as a source release on
`GitHub <https://github.com/pythonnet/pythonnet/releases>`__ and as a
binary wheel or source distribution from the `Python Package
Index <https://pypi.python.org/pypi/pythonnet>`__.

The source release is a self-contained “private” assembly. Just unzip
the package wherever you want it, cd to that directory, build the
solution ``python setup.py build_ext --inplace``. Once you start up
Python or IPython interpreter in this directory or append this directory
to ``sys.path``, then after ``import clr`` statement .NET assemblies can
be used. You can also run ``nPython.exe`` (``mono nPython.exe`` on
``*nix``) to check how python can be embedded in console .NET
application. Note that the source release does not include a copy of the
CPython runtime, so you will need to have installed Python on your
machine before using the source release.
platform-independent binary wheel or source distribution from the `Python
Package Index <https://pypi.python.org/pypi/pythonnet>`__.

Installing from PyPI can be done using ``pip install pythonnet``.

To build from source (either the ``sdist`` or clone or snapshot of the
repository), only the .NET6 SDK (or newer) and Python itself are required. If
``dotnet`` is on the ``PATH``, building can be done using

.. code:: bash

python setup.py build


Loading a Runtime
~~~~~~~~~~~~~~~~~
Expand Down
0