Programming/Python
[Programming/Python] .py file compile
scii
2020. 3. 23. 21:28
python 파일을 컴파일하는 방법.
Cython을 사용하는 방법과 Nuitka를 사용하는 방법을 소개한다.
Cython을 이용하면 .pyd 라이브러리 파일을 만들 수 있다.
아래는 nuitka의 홈페이지이다.
Nuitka Home
Hi all! :) My name is Taofeng Li and I go by the nickname of Tommy, github handle tommyli3318. I'm a Computer Science major at the University of California, Irvine in the United States. I am very excited to announce that I'll be contributing to Nuitka this
nuitka.net
# nuitka 실제 사용 예
# nuitka를 이용해 .pyd 파이썬 라이브러리를 만드는 명령이다.
python -m nuitka --module --plugin-enable=pylint-warnings --no-pyi-file --recurse-all --follow-imports --output-dir=c:/Users/scii/Desktop/test ./video_player.py
python -m nuitka --module --plugin-enable=pylint-warnings --no-pyi-file --recurse-all --follow-imports --nofollow-import-to=hou --output-dir=c:/Users/scii/Desktop/test ./main.py
# 사용했던 예
python -m nuitka --module --plugin-enable=qt-plugins --recurse-all --follow-imports --nofollow-import-to=hou --output-dir=c:/Users/scii/Desktop/test .\libs\create_hda.py