Site updated at 2017-12-11 09:45:32 UTC
This commit is contained in:
parent
442239f4b5
commit
034025b9da
27 changed files with 83 additions and 71 deletions
|
@ -90,7 +90,22 @@ Different distributions have different package installation mechanisms and somet
|
|||
</p>
|
||||
<p>Additional dependencies exist if you plan to perform Frontend Development, please read the <a href="https://home-assistant.io/developers/frontend/">Frontend</a> section to learn more.</p>
|
||||
<h4><a class="title-link" name="developing-on-windows" href="#developing-on-windows"></a> Developing on Windows</h4>
|
||||
<p>If you are using Windows as a development platform, make sure that you have the correct Microsoft Visual C++ build tools installed. Check the <a href="https://wiki.python.org/moin/WindowsCompilers">Windows Compilers</a> section on the <a href="https://www.python.org/">Python website</a> for details. Validation using <code class="highlighter-rouge">tox</code> will fail if this is not done correctly.</p>
|
||||
<p>Due to Home Assistant is mainly designed and developed on Linux distributions it is not recommended to develop on Windows machines. However on Windows 10 machines you should decide to set up a <a href="https://docs.microsoft.com/de-de/windows/wsl/install-win10">Linux subsystem</a>.</p>
|
||||
<p>Setup Linux subsystem.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>apt-get update
|
||||
<span class="gp">$ </span>apt-get upgrade
|
||||
<span class="gp">$ </span><span class="nb">echo</span> <span class="s1">'export DISPLAY=:0'</span> >> ~/.bashrc <span class="o">&&</span> . ~/.bashrc
|
||||
<span class="gp">$ </span>sudo apt-get install xubuntu-desktop -y
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Download and start PyCharm.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>wget https://download.jetbrains.com/python/pycharm-community-20XX.X.tar.gz
|
||||
<span class="gp">$ </span>tar -xzf pycharm-community-20XX.X
|
||||
<span class="gp">$ </span>./pycharm.sh
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>In order to display the PyCharm GUI on Windows you need to run a X-Server like <a href="https://sourceforge.net/projects/vcxsrv/">VcXserv</a>.</p>
|
||||
<p>If you decide using Windows as a development platform, make sure that you have the correct Microsoft Visual C++ build tools installed. Check the <a href="https://wiki.python.org/moin/WindowsCompilers">Windows Compilers</a> section on the <a href="https://www.python.org/">Python website</a> for details. Validation using <code class="highlighter-rouge">tox</code> will fail if this is not done correctly.</p>
|
||||
<p>Also, make sure to install or upgrade the <code class="highlighter-rouge">setuptools</code> Python package. It contains compatibility improvements and adds automatic use of compilers:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>pip install --upgrade setuptools
|
||||
</code></pre>
|
||||
|
@ -123,11 +138,8 @@ Once forked, setup your local copy of the source using the commands:</p>
|
|||
<li>Run <code class="highlighter-rouge">hass</code> to invoke your local installation.</li>
|
||||
</ul>
|
||||
<h3><a class="title-link" name="logging" href="#logging"></a> Logging</h3>
|
||||
<p>By default logging in home-assistant is tuned for operating in
|
||||
production (set to INFO by default, with some modules set to even less
|
||||
verbose logging levels).</p>
|
||||
<p>You can use the <a href="/components/logger/">logger</a> component to adjust
|
||||
logging to DEBUG to see even more details about what is going on.</p>
|
||||
<p>By default logging in home-assistant is tuned for operating in production (set to INFO by default, with some modules set to even less verbose logging levels).</p>
|
||||
<p>You can use the <a href="/components/logger/">logger</a> component to adjust logging to DEBUG to see even more details about what is going on.</p>
|
||||
</article>
|
||||
</div>
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue