Project

General

Profile

Feature #9894

Deliver python3 modules

Added by Andy Fiddaman over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-10-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

With the approaching retirement of Python 2.7, gate should deliver python 3 versions alongside the existing ones to aid transition.


Related issues

Related to illumos gate - Bug #10056: 9894 broke PYTHON_VERSIONClosed2018-12-10

Actions

History

#1

Updated by Andy Fiddaman over 1 year ago

  • % Done changed from 40 to 100
#2

Updated by Andy Fiddaman over 1 year ago

Testing notes:

#!/bin/sh

py3test()
{
        echo "************* $1" 

        python3 -c "$2" 
}

zfsmods="allow dataset groupspace holds table unallow userspace util" 

echo "***" 
echo "*** python3" 
echo "***" 
python3 --version

py3test libbe_py 'import libbe_py; print(len(libbe_py.beList()))'
py3test solaris.misc 'import solaris.misc; print(solaris.misc.isglobalzone())'
for z in $zfsmods; do
        py3test zfs.$z "import zfs.$z" 
done
pfexec python3 /usr/lib/zfs/pyzfs.py userspace rpool

Output:

***
*** python3
***
Python 3.5.6
************* libbe_py
2
************* solaris.misc
1
************* zfs.allow
************* zfs.dataset
************* zfs.groupspace
************* zfs.holds
************* zfs.table
************* zfs.unallow
************* zfs.userspace
************* zfs.util
TYPE        NAME  USED  QUOTA
POSIX User  root   10K   none
#3

Updated by Electric Monk over 1 year 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>

#4

Updated by Andy Fiddaman about 1 year ago

  • Related to Bug #10056: 9894 broke PYTHON_VERSION added

Also available in: Atom PDF