일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- jupyter
- c# winform
- 다트 언어
- c언어
- C++
- 깃
- Algorithm
- 도커
- HTML
- vim
- docker
- c# 윈폼
- Python
- c# 추상 클래스
- C# delegate
- Flutter
- dart 언어
- 유니티
- gitlab
- github
- Houdini
- jupyter lab
- 플러터
- git
- Unity
- C언어 포인터
- c#
- 포인터
- Data Structure
- 구조체
Archives
- Today
- Total
nomad-programmer
[Programming/Python] .py file compile 본문
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
'Programming > Python' 카테고리의 다른 글
[Programming/Python] pyinstaller 파일 용량 문제 (0) | 2020.07.09 |
---|---|
[Programming/Python] License 생성, 부여, 검사 등의 모듈 (0) | 2020.03.24 |
[Programming/Python] functools의 partial (0) | 2020.03.11 |
[Programming/Python] 코드 난독화(obfuscation) / Source Code 보호 (0) | 2019.12.23 |
[Programming/Python] 컴파일 및 디컴파일 (0) | 2019.12.23 |
Comments