[openstack-dev] [hyper-v] oslo.privsep vs Windows

Robert Collins robertc at robertcollins.net
Thu Nov 26 03:17:57 UTC 2015


On 26 November 2015 at 15:54, Alessandro Pilotti
<apilotti at cloudbasesolutions.com> wrote:
> Basic Python development does not really differ too much on Windows compared
> to Linux.
>
> Let’s start with the Python environment. I’d recommend to install a 2.7
> (x86) one and a 3.4 (x64) one:
>
> https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi
> https://www.python.org/ftp/python/3.4.3/python-3.4.3.amd64.msi
>
> Download also git for Windows: https://git-scm.com/download/win
> Git works in the same way, so nothing particular to add. Just take care of
> the line endings. I usually keep them all in LF, avoiding CRLF, others let
> git do the conversion.
>
> When done, open a PowerShell or command prompt and set your PATH and
> PYTHONPATH e.g.:
>
> $ENV:PATH += ";C:\Python27;C:\Python27\Scripts"
> $ENV:PYTHONPATH = "."
>
> From here is pretty standard Python, e.g.:
>
>     pip install “blah>=1.0.0"
>     pip install –r requirements.txt
>
>     python yourmodule.py
>
> For running tests you can use for example nose since tox / testr don’t
> really work:
>
>     pip install mock
>     pip install nose
>     nosetests .

i haven't seen any bug reports on testrepository vis-a-vis windows;
please do file them, otherwise I'll presume it works.

-Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud



More information about the OpenStack-dev mailing list