From 0dfc7b6d23c8178d4a4bd1745750a39dfee54cd9 Mon Sep 17 00:00:00 2001 From: Aldrich Asuncion Date: Tue, 28 Oct 2025 08:35:48 +0800 Subject: [PATCH] Use pyproject.toml instead of setup.py --- README.md | 15 ++++--------- pyproject.toml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.bat | 12 ----------- setup.py | 57 ------------------------------------------------- setup.sh | 34 ----------------------------- 5 files changed, 62 insertions(+), 114 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.bat delete mode 100644 setup.py delete mode 100755 setup.sh diff --git a/README.md b/README.md index a4ca447..644281f 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,13 @@ Use this library if you're one of the following: Intended for Ubuntu (and probably some other Unix-based systems) for now, although at least two people have managed to make it work in Windows. If you can't, feel free to ask for help :) - - # Setup -- Run `bash setup.sh` (or run `setup.bat` if you're using Windows). If it prints `DONE`, then it was successful. Make sure you have `python3` and `pip3`. +- Navigate to the root directory of this repository (which includes the `pyproject.toml` file) and run `python3 -m pip install .` - - *Note:* It installs KompGen (and `setuptools`) via `pip`. Feel free to modify `setup.sh` if you don't want to install globally, e.g., if you want to use virtualenv or something. +- If you want to install this on, say, `python3.9` or `pypy3`, run `python3.9 -m pip install .` (or `pypy3`). I recommend installing it on the latest pypy3 version. - - If it issues errors for you, please read `setup.sh` and try to find a way to run each line somehow. + - *Note:* For pypy3 installed via `snap` or via `ppa:pypy/ppa`, I couldn't install things easily due to permission issues. I suggest installing pypy3 via [the instructions here](https://doc.pypy.org/en/latest/install.html#installing-pypy).