Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use flit to install pygam - pyproject.toml does not exist #319

Open
miguelfmc opened this issue Aug 8, 2022 · 2 comments
Open

Can't use flit to install pygam - pyproject.toml does not exist #319

miguelfmc opened this issue Aug 8, 2022 · 2 comments

Comments

@miguelfmc
Copy link

miguelfmc commented Aug 8, 2022

I have been trying to install pygam from source using flit, as indicated in the docs, but I am unable to do so.

I have been running the following (from the project's root directory):

pip install flit
flit install -s

And after running flit install I get the following error:

Config file pyproject.toml does not exist

So it seems like the config toml file for installation is missing.

Environment details
Python 3.6.13
Flit 3.7.1

@miguelfmc
Copy link
Author

Upon further reading, it seems like the versions 0.12 and higher of flit use pyproject.toml instead of flit.ini.

A couple of possible fixes:

  1. Follow the latest flit documentation and turn the flit.ini file into a pyproject.toml by running:

python3 -m flit.tomlify

I tried this and it seems to work.

  1. Downgrade flit to version 0.12 or lower

I have not tried this, since this seems like going back to a very old version of flit.

@dswah
Copy link
Owner

dswah commented Feb 8, 2024

Hi, im sorry that i never responded here.
I hope you were able to figure out a solution.
we have moved to poetry + pyproject.toml
does this work for your use-case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants