Bug 1459818 - Build instructions fails
Summary: Build instructions fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-python
Classification: oVirt
Component: Build
Version: 4.1.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.1.5
: 4.1.6
Assignee: Ondra Machacek
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-08 09:28 UTC by Fabrice Bacchella
Modified: 2017-08-23 08:02 UTC (History)
6 users (show)

Fixed In Version: python-ovirt-engine-sdk4-4.1.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-23 08:02:39 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 78714 0 master MERGED List all needed packages to successfully run maven 2017-06-27 14:50:27 UTC
oVirt gerrit 78716 0 sdk_4.1 MERGED List all needed packages to successfully run maven 2017-06-27 15:02:42 UTC

Description Fabrice Bacchella 2017-06-08 09:28:09 UTC
In the build instructions, the dependencies listed are gcc, libxml2-devel and python-devel.

But running from the master branch, I got:

    [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (format-check) on project python-sdk: Command execution failed. Cannot run program "flake8" (in directory "/ovirt-engine-sdk/sdk"): error=2, No such file or directory -> [Help 1]

So I installed python-flake8, it run slightly longer, I now got:

[INFO] --- exec-maven-plugin:1.2.1:exec (test) @ python-sdk ---
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'nosetests'
4.2.1.a2

Also, the pom.xml says:

          <configuration>
            <source>1.8</source>
            <target>1.8</target>
          </configuration>

So a java 8 installation is needed.

Comment 1 Fabrice Bacchella 2017-06-08 15:43:58 UTC
Ok, installing python-nose helped, but now I got:

[INFO] --- exec-maven-plugin:1.2.1:exec (build) @ python-sdk ---
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'
4.2.1.a2

Comment 2 Fabrice Bacchella 2017-06-08 16:14:45 UTC
Ok, last additions:

python-wheel
python2-rpm-macros

Comment 3 Lukas Svaty 2017-07-11 06:40:52 UTC
What was the change here? Can you propose verification steps?

Comment 4 Ondra Machacek 2017-07-11 11:11:08 UTC
Follow the instructions in:

  https://github.com/oVirt/ovirt-engine-sdk/blob/master/README.adoc

And check if you succeed to build the SDK.

Comment 5 Radim Hrazdil 2017-08-02 13:37:08 UTC
Verified that build succeeds when following instructions given in comment 4.


Note You need to log in before you can comment on or make changes to this bug.