Skip to content
Snippets Groups Projects
Commit 3829eec4 authored by jkerdreu's avatar jkerdreu
Browse files

Added MS windows install guide

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2531 b32b6428-25c9-4566-ad07-03861ab6144f
parent b402dc71
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ Requirements ...@@ -7,6 +7,9 @@ Requirements
~~~~~~~~~~~~ ~~~~~~~~~~~~
To install xAAL for Python, you need Python3. Python version 3 isn't mandatory To install xAAL for Python, you need Python3. Python version 3 isn't mandatory
but highly recommended (some parts haven't be tested with Python 2 since a while). but highly recommended (some parts haven't be tested with Python 2 since a while).
Un*x like
~~~~~~~~~~
Install the following packages: Install the following packages:
- subversion - subversion
...@@ -34,10 +37,7 @@ First build a virtualenv : ...@@ -34,10 +37,7 @@ First build a virtualenv :
.. code-block:: bash .. code-block:: bash
# for debian / ubuntu # for debian / ubuntu
$ python3 -m virtualenv --python=python3 xaal_env $ python3 -m venv xaal_env
# or
$ virtualenv3 xaal_env
Everytime, you want to use the binding, you must source the activate script. Everytime, you want to use the binding, you must source the activate script.
...@@ -136,6 +136,30 @@ To check devices, you can use: ...@@ -136,6 +136,30 @@ To check devices, you can use:
$ xaal-walker lamp.any $ xaal-walker lamp.any
Windows
~~~~~~~
This code can be used w/ Windows (tested w/ Win10 and Python 3.8). You can build
the virtualenv with the same way. To activate the venv, you should run Scripts\activate.bat.
For Powershell users (recommanded), you must tweak the ExecutionPolicy
to be able to run Activate.ps1.
.. code-block::
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
To must install libsodium. You can dowload it here: https://download.libsodium.org/libsodium/releases/
Extract the DLL from the zip file (libsodium-1.0.18-stable-msvc.zip\libsodium\x64\Release\v142\dynamic)
in the Win32 DLL folder.
If everything is fine, you can use exactly the same commands on Un*x and Windows. The xaal-* commands
are just renamed with an exe extension (ie: xaal-dumper.exe)
Issues:
~~~~~~~
Right now some gateways won't work on Windows due to missing libaries (openZwave ie)
Coding style Coding style
~~~~~~~~~~~~ ~~~~~~~~~~~~
Every xAAL program (device, gateway, apps) use a namespace. For example, xaal.rest, Every xAAL program (device, gateway, apps) use a namespace. For example, xaal.rest,
...@@ -179,3 +203,4 @@ FAQ ...@@ -179,3 +203,4 @@ FAQ
much for a simple command-line tools like xaal-info for example. much for a simple command-line tools like xaal-info for example.
We want to provide a better user experience. We want to provide a better user experience.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment