-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- WindowsのPython3.12環境での python -m build 実行時、下記エラーにてwhlファイルの生成に失敗する。
- ドキュメントビルドのため、pip install docutils は実行済み
- 本ソース rtshell-shellsupport は rtshell のビルド時に呼び出される
>cd rtshell
>python -m build
:
error: [Errno 2] No such file or directory: 'data\\bash_completion.in'
ERROR Backend subprocess exited when trying to invoke build_wheel
- このビルドでtar.gzファイルは生成されるが、whlファイルが生成されない
- -wオプションを付けるとエラー内容がもう少し詳しくわかる
>python -m build -w
:
error: Failed to compile D:\test\rtshell\doc\rest\en\rtact.txt to build\doc\man\en\man1\rtact.1.
Stdout:
b''
---
Stderr:
b"python: can't open file 'C:\\\\Users\\\\kawauchi\\\\AppData\\\\Local\\\\Temp\\\\build-env-3sqwl17v\\\\Scripts\\\\rst2man.py': [Errno 2] No such file or directory\r\n"
ERROR Backend subprocess exited when trying to invoke build_wheel
- rst2man.py が見つからないのが原因で、Python3.11まではこのようにpyファイルでインストールされていたが、Python3.12からはexeファイルでインストールされるようになったため
c:\python311\scripts\rst2man.py
c:\python312\scripts\rst2man.exe
- rtshell-shellsupport/custom/build.py で拡張子として .py を追加している部分の処理を検討する必要がある
def compile_man(self, lang):
log.info('Compiling manpage documentation for language {}'.format(lang))
cmd = 'rst2man'
if sys.platform == 'win32':
cmd = os.path.join(sys.prefix, 'Scripts', cmd + '.py') <-- ★ここの処理
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working