\pyo3/
This commit is contained in:
parent
6350831785
commit
59d61b8c38
@ -8,8 +8,8 @@ fonts_folder = "libs/fonts"
|
||||
|
||||
[window]
|
||||
style = "None"
|
||||
width = 1024
|
||||
height = 768
|
||||
width = 1515
|
||||
height = 864
|
||||
visible = true
|
||||
gui_scale = 1
|
||||
caption = "Difficult Rocket {version}"
|
||||
|
@ -1,2 +1,15 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel", "setuptools-rust"]
|
||||
|
||||
[project]
|
||||
name = 'Difficult_Rocket_rs'
|
||||
dynamic = ['version']
|
||||
authors = [
|
||||
{name = 'shenjackyuanjie', email = '3695888@qq.com'}
|
||||
]
|
||||
requires-python = ">=3.8"
|
||||
classifiers = [
|
||||
"Programming Language :: Rust",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
"Programming Language :: Python :: Implementation :: PyPy",
|
||||
]
|
8
libs/Difficult_Rocket_rs/readme.md
Normal file
8
libs/Difficult_Rocket_rs/readme.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Difficult_Rocket_rs
|
||||
|
||||
DR 的 Rust 编写的扩展
|
||||
用于提升 DR 的性能
|
||||
|
||||
## 版本信息
|
||||
- 使用工具
|
||||
- pyo3
|
@ -1,3 +1,4 @@
|
||||
#[allow(non_snake_case)]
|
||||
use pyo3::prelude::*;
|
||||
|
||||
/// Formats the sum of two numbers as string.
|
||||
|
@ -43,7 +43,7 @@ $end_time = Get-Uptime
|
||||
$out = $end_time.TotalMilliseconds - $start_time.TotalMilliseconds
|
||||
Write-Output $end_time.TotalSeconds $start_time.TotalSeconds $out s
|
||||
Write-Output $start_time $end_time
|
||||
Write-Output "--jobs=24 --mingw64 --lto=no and $args"
|
||||
Write-Output "--jobs=24 --clang --msvc=latest --lto=no and $args"
|
||||
# --include-data-dir=./libs/pyglet=./pyglet
|
||||
# --run
|
||||
# --disable-ccache
|
||||
|
@ -22,5 +22,29 @@ defusedxml = "*"
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=42", "wheel", "nuitka", "toml", "imageio"]
|
||||
requires = ["setuptools>=61",
|
||||
"wheel",
|
||||
"nuitka",
|
||||
"imageio",
|
||||
"setuptools-rust"]
|
||||
build-backend = "nuitka.distutils.Build"
|
||||
|
||||
[project]
|
||||
name = 'Difficult_Rocket'
|
||||
dynamic = ['version']
|
||||
authors = [
|
||||
{name = 'shenjackyuanjie', email = '3695888@qq.com'}
|
||||
]
|
||||
description = 'A rocket simlater'
|
||||
readme = 'README.md'
|
||||
requires-python = '>=3.8'
|
||||
license = {text = 'CC BY-NC-SA 4.0'}
|
||||
dependencies = [
|
||||
'nuitka=1.3.x',
|
||||
'psutil=5.9.x',
|
||||
'defusedxml=0.7.x',
|
||||
'rtoml=0.9.x',
|
||||
'tomlkit=0.11.x',
|
||||
'Pillow',
|
||||
'pymunk'
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user