On 02/20/2018 01:27 PM, Nash, George wrote:
> Small typo `os.system(python3 -m pip install -user <package>)` should be 
> ‘os.system(python3 -m pip install --user <package>)’
> 
> 
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Nash, George
> Sent: Friday, February 16, 2018 1:58 PM
> To: Wouter van der Beek (wovander) <[email protected]>; Arthur Barros 
> Lapprand <[email protected]>
> Cc: [email protected]
> Subject: Re: [dev] OCF Conformance Test Tool
> 
> To use DeviceBuilder on Linux you may need to make some modifications to the 
> scripts.
> 
> Edit: DeviceBuilder_C++IotivityServer.sh
> 
> Change
> PYTHONE_EXE to your local copy of python 3.x
> 
> For my Linux system I set it to
> `PYTHON_EXE=python3`
> 
> The first time you run the script you need to run it under sudo or you will 
> need to change src/install.py
> 
> Where it calls:
> os.system(python3 -m pip install <package>)
> 
> change this to
> 
> os.system(python3 -m pip install -user <package>)

It's not really great practice for scripts to install their own
dependencies - if so, definitely endorse George's suggestion to do it as
a "user install" rather than a "system install".

Better is to make an installer that calls out the dependencies, so that
installation is done under control of the installer, which has better
context when doing the install.


_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to