Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
05-15 13:20
관리 메뉴

nomad-programmer

[Programming/Python] .py file compile 본문

Programming/Python

[Programming/Python] .py file compile

scii 2020. 3. 23. 21:28

python 파일을 컴파일하는 방법.

Cython을 사용하는 방법과 Nuitka를 사용하는 방법을 소개한다.

Cython을 이용하면 .pyd 라이브러리 파일을 만들 수 있다.

아래는 nuitka의 홈페이지이다.

https://nuitka.net/

 

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

 

 

Comments