Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 이미지 gps
- jsontokotlinclass
- ActivityResultContracts
- ExifInterface
- ChromeCustomTab
- BottomSheetDialog
- onReceivedSslError
- onResume
- shotcut
- prettyJson
- kdoc-generator
- notification bar
- Android
- application
- requestPermission
- notification
- datastore
- 403 Error
- webview
- notification setting
- skipcollapsed
- Git
- Blinking
- circlecrop
- LOG
- room
- itemAnimator
- App Startup
- Plugins
- navigation component
Archives
- Today
- Total
Debbi Story
Cython으로 python 컴파일하기 본문
728x90
windows 환경에서 했을때 오류, Linux 환경에서 해야함
참고.
https://medium.com/swlh/distributing-python-packages-protected-with-cython-40fc29d84caf
anaconda 환경일 경우
conda install cython
소스폴더와 같은 위치에 setup.py 생성
소스의 진입점 main.py 생성
├── app
| ├── __init__.py
| ├── core.py
│ └── main
└── setup.py
python setup.py build_ext --inplace
python setup.py bdist_wheel
unzip dist/app-0.1.0-cp36-cp36m-linux_x86_64.whl -d dist/app
cd dist/app
python -m app.main