Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3用debパッケージを生成できるように整備(1.2) #177

Merged
merged 1 commit into from
Feb 26, 2020
Merged

Python3用debパッケージを生成できるように整備(1.2) #177

merged 1 commit into from
Feb 26, 2020

Conversation

n-kawauchi
Copy link

Identify the Bug

Link to #176

Description of the Change

  • setup.pyを実行するコマンドをpython3と指定した

  • debファイルのバージョン番号を 1.2.1-1 とした

  • debパッケージビルド時に依存しているomniORBpyを、python3-omniorb と指定

  • debパッケージのインストール先は、Python2.7用 をインストールされている環境とバッティングしないようにした

    • /usr/binにインストールするコマンド名は、rtcd_python3、rtcprof_python3
    • exampleとdocのインストール先はpython3ディレクトリ下
      /usr/share/openrtm-1.2/components/python3
      /usr/share/openrtm-1.2/doc/python3
    • OpenRTM-aist-Python本体のインストール先
      /usr/lib/python3/dist-packages/OpenRTM_aist
  • ビルド時に python3.6/distutils/command/install_lib.py でエラーが発生したことへの対応

    • setuplpyのinstall_core_libとinstall_core_script関数内でfinalizeの呼び出しが抜けていたので追加

Verification

  • Ubuntu18.04のDocker環境へ生成したOpenRTM-aist-Pythonをインストールしての動作確認

    • サンプルRTC ConsoleIn.pyとConsoleOut.pyの接続動作 OK(rtshell利用)
    • pythonは3のみで、2.7はインストールされていない
    # python --version
    bash: python: command not found
    # python3 --version
    Python 3.6.9
    
  • テスト用のパッケージリポジトリ(http://150.29.99.185 <--DHCP環境)からaptでインストールした環境での確認

  • omniorb, omniorbpy, openrtm-aist-python3 は pkg_install_ubuntu.sh を利用してインストール

    • このスクリプトは Python に関してバージョン3 関連のみをインストールするように修正済
    • リリースに合わせて OpenRTM-aist のmasterブランチにマージする必要があるため、現時点で @n-kawauchi のリポジトリにアップしてあるものを利用している
  • テスト環境構築用Dockerfileは下記を利用

FROM ubuntu:18.04
RUN apt update\
 && apt install -y --no-install-recommends \
 wget \
 gnupg \
 && wget --no-check-certificate https://raw.githubusercontent.com/n-kawauchi/OpenRTM-aist/ubuntu_install_script/scripts/pkg_install_ubuntu.sh -O pkg_install_ubuntu.sh \
 && sed -i -e 's/reposerver="openrtm.org/reposerver="150.29.99.185/g' pkg_install_ubuntu.sh \
 && sed -i -e 's/reposervers="openrtm.org/reposervers="150.29.99.185/g' pkg_install_ubuntu.sh \
 && sh pkg_install_ubuntu.sh -l c++ -l python -l rtshell -d --yes
  • 生成したDockerコンテナのインストール状況
# dpkg -l | grep openrtm
ii  openrtm-aist:amd64                1.2.1-0
ii  openrtm-aist-dev:amd64            1.2.1-0
ii  openrtm-aist-doc                  1.2.1-0
ii  openrtm-aist-example:amd64        1.2.1-0
ii  openrtm-aist-idl:amd64            1.2.1-0
ii  openrtm-aist-python3              1.2.1-1  <--★
ii  openrtm-aist-python3-doc          1.2.1-1  <--★
ii  openrtm-aist-python3-example      1.2.1-1  <--★

# dpkg -l | grep omni   
ii  libomniorb4-2:amd64               4.2.3-0.1
ii  libomniorb4-dev:amd64             4.2.3-0.1
ii  libomnithread4:amd64              4.2.3-0.1
ii  libomnithread4-dev:amd64          4.2.3-0.1
ii  omniidl                           4.2.3-0.1
ii  omniidl-python3                   4.2.3-0.1
ii  omniorb-nameserver                4.2.3-0.1
ii  python3-omniorb                   4.2.3-0.1
ii  python3-omniorb-omg               4.2.3-0.1
  • Did you succeed the build?
  • No warnings for the build?
  • Have you passed the unit tests?

@n-kawauchi n-kawauchi requested a review from n-ando February 20, 2020 05:33
@n-kawauchi n-kawauchi self-assigned this Feb 20, 2020
@n-ando n-ando merged commit a9d99cb into OpenRTM:svn/RELENG_1_2 Feb 26, 2020
@n-kawauchi n-kawauchi deleted the python3-deb-pkgs branch February 27, 2020 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants