Actions
Feature #9904
closedSplit python modules out into separate packages
Start date:
2018-10-16
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
and use conditional dependencies so that they are only installed if the corresponding python package is installed - suggested by Alexander Pyhalov
Updated by Andy Fiddaman over 3 years ago
- Subject changed from Split python modules out to separate packages to Split python modules out into separate packages
- % Done changed from 50 to 90
Updated by Andy Fiddaman over 3 years ago
Testing notes:
Ran four nightly builds to cover the variations of BUILDPY2='#' and BUILDPY3='#' in the environment.
Tested building with both python versions then ONU-ing to a machine without python3. That resulted in this:
bloody% pkg list -a system/library/python/\* NAME (PUBLISHER) VERSION IFO system/library/python/libbe-27 0.5.11-151027.0 i-- system/library/python/libbe-35 0.5.11-151027.0 --- system/library/python/solaris-27 0.5.11-151027.0 i-- system/library/python/solaris-35 0.5.11-151027.0 --- system/library/python/zfs-27 0.5.11-151027.0 i-- system/library/python/zfs-35 0.5.11-151027.0 ---
and installing python3 correctly pulled in the new packages:
bloody% pfexec pkg install -v python-35 Packages to install: 4 Changed packages: omnios runtime/python-35 None -> 3.5.6-151027.0 system/library/python/libbe-35 None -> 0.5.11-151027.0 system/library/python/solaris-35 None -> 0.5.11-151027.0 system/library/python/zfs-35 None -> 0.5.11-151027.0
and removal was prevented unless they were removed as a set:
bloody% pfexec pkg uninstall python-35 Creating Plan (Solver setup): / pkg uninstall: Unable to remove 'runtime/python-35@3.5.6-151027.0' due to the following packages that depend on it: system/library/python/libbe-35@0.5.11-151027.0 system/library/python/solaris-35@0.5.11-151027.0 system/library/python/zfs-35@0.5.11-151027.0 bloody% pfexec pkg uninstall system/library/python/libbe-35 ... lots of output but including Package runtime/python-35 must be uninstalled before the requested operation can be performed. Reject: pkg://omnios/runtime/python-35@3.5.6-151027.0 bloody% pfexec pkg uninstall python-35 system/library/python/\*-35 Packages to remove: 4
Updated by Electric Monk over 3 years ago
- Status changed from In Progress to Closed
git commit e8921a52c53ee69f7b65f054d9b2e886139daa59
commit e8921a52c53ee69f7b65f054d9b2e886139daa59 Author: Andy Fiddaman <omnios@citrus-it.co.uk> Date: 2018-10-24T19:27:58.000Z 9894 Deliver python3 modules 9904 Split python modules out into separate packages 5571 Provide 64-bit python modules Reviewed by: Alexander Pyhalov <apyhalov@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Actions