Re: [vpp-dev] Building with fresh Ubuntu Focal

2020-06-02 Thread Ole Troan
Hi Paul,

> Yes.  The build assumes that vppapigen runs in the global python environment 
> such as if in a fresh container.  
> 
> It is the same issue we have with generating vpp papi packages.  It installs 
> into the global environment and people have no option to pip install it 
> without downloading the sources and doing a pip install -e .  There is 
> a vpp_papi package on pypi, but it hasn't been updated in almost 2 years.
> 
> To fix the issue properly, vppapigen should become a python package 
> encapsulating its dependency on ply, so that it works independent of the 
> python version/location.
> 
> The same holds true of the test framework.

Your preferred approach would be that all Python scripts as part of the build / 
test process would run in Python virtualenv?
So first thing cmake does it create the venv and then all python runs from 
there?

Cheers,
Ole-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16608): https://lists.fd.io/g/vpp-dev/message/16608
Mute This Topic: https://lists.fd.io/mt/74604485/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Building with fresh Ubuntu Focal

2020-06-01 Thread Paul Vinciguerra
Hi Keith,

Yes.  The build assumes that vppapigen runs in the global python
environment such as if in a fresh container.

It is the same issue we have with generating vpp papi packages.  It
installs into the global environment and people have no option to pip
install it without downloading the sources and doing a pip install -e
.  There is a vpp_papi package on pypi, but it hasn't been updated in
almost 2 years.

To fix the issue properly, vppapigen should become a python package
encapsulating its dependency on ply, so that it works independent of the
python version/location.

The same holds true of the test framework.

Paul


On Mon, Jun 1, 2020 at 9:46 AM Keith Burns  wrote:

> Had some issues building with fresh Ubuntu Focal install around python3.
>
> To fix I had to:
> sudo apt install python3-venv
> python3 -m venv "~/pyenv/vpp"
> source ~/pyenv/vpp/bin/activate
>
> # build fails without manually installing
> pip install ply
>
> cd 
> make install-dep build
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16600): https://lists.fd.io/g/vpp-dev/message/16600
Mute This Topic: https://lists.fd.io/mt/74604485/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Building with fresh Ubuntu Focal

2020-06-01 Thread Keith Burns
Had some issues building with fresh Ubuntu Focal install around python3.

To fix I had to:
sudo apt install python3-venv
python3 -m venv "~/pyenv/vpp"
source ~/pyenv/vpp/bin/activate

# build fails without manually installing
pip install ply

cd 
make install-dep build
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16598): https://lists.fd.io/g/vpp-dev/message/16598
Mute This Topic: https://lists.fd.io/mt/74604485/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-