The way kiwi uses setup.py assumes that pip runs this script like a spec file in rpm is processed. However this is not the case given that pip implicitly creates a static zip file called wheel which looses all the code logic done in setup.py. Therefore setup.py should not contain code that needs to run at install time. Of course this change comes with an effect which is that the following files will not be available when installing kiwi from pip: * man pages: /usr/share/man/man8/... * command completion: /etc/bash_completion.d/kiwi-ng.sh * kiwi default config file: /etc/kiwi.yml * package docs: /usr/share/doc/packages/kiwi-ng/... (kiwi.pdf, LICENSE, README) kiwi stays fully functional without this information. It is expected that the installation of kiwi as a service will be done by a package and its package manager. When using kiwi from pip it is designed to provide a python module but not a complete user application. The way pip and wheels interact with each other seems to demonstrate that pip is not a package manager but more a python module manager. This Fixes #1415
47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
# There is a kiwi manual page, kiwi-ng exists for the alternative system
|
|
addFilter("no-manual-page-for-binary kiwi-ng")
|
|
|
|
# don't blame on empty package, kiwi-boot-requires for obs
|
|
# integration is used to provide a requires list but the package
|
|
# itself comes with no content which is intentional. In addition
|
|
# don't blame on lib dependency which are also an expected result
|
|
# for this buildservice internal package
|
|
addFilter("suse-filelist-empty .*")
|
|
addFilter("explicit-lib-dependency .*")
|
|
|
|
# don't check uid for tftpboot
|
|
addFilter("non-standard-uid .*")
|
|
|
|
# don't check for buildroot usage, kiwi's Makefile uses the same var name
|
|
addFilter("rpm-buildroot-usage .*")
|
|
|
|
# don't check position-independent-executable
|
|
addFilter("position-independent-executable-suggested .*")
|
|
|
|
# don't check for file duplicates
|
|
addFilter("files-duplicate .*")
|
|
addFilter("cross-directory-hard-link .*")
|
|
|
|
# don't check for locale locations, they are used in the initrd only
|
|
addFilter("file-not-in-%lang .*")
|
|
|
|
# don't check for manual page of binaries used in initrd only
|
|
addFilter("W: no-manual-page-for-binary dcounter");
|
|
addFilter("W: no-manual-page-for-binary startshell");
|
|
addFilter("W: no-manual-page-for-binary utimer");
|
|
addFilter("W: no-manual-page-for-binary driveready");
|
|
addFilter("W: no-manual-page-for-binary setctsid");
|
|
addFilter("W: no-manual-page-for-binary isconsole");
|
|
addFilter("W: no-manual-page-for-binary kiwicompat");
|
|
|
|
# kiwi master package can't be noarch if sub packages are arch specific
|
|
addFilter("W: no-binary");
|
|
|
|
# if we add a provides to the obsoleted another warning that the
|
|
# same package is provided and obsoleted appears. This warning is
|
|
# pointless or doesn't explain what it really wants
|
|
addFilter("W: obsolete-not-provided");
|
|
|
|
# providing deb packages from this spec requires the tag to be hard coded
|
|
addFilter("W: hardcoded-packager-tag");
|