This commit is contained in:
shenjack 2023-01-20 23:30:27 +08:00
parent 6350831785
commit 59d61b8c38
7 changed files with 51 additions and 5 deletions

View File

@ -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}"

View File

@ -1,2 +1,15 @@
[build-system]
requires = ["setuptools", "wheel", "setuptools-rust"]
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",
]

View File

@ -0,0 +1,8 @@
# Difficult_Rocket_rs
DR 的 Rust 编写的扩展
用于提升 DR 的性能
## 版本信息
- 使用工具
- pyo3

View File

@ -1,3 +1,4 @@
#[allow(non_snake_case)]
use pyo3::prelude::*;
/// Formats the sum of two numbers as string.

View File

@ -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

View File

@ -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'
]