Skip to content

Failure to build wheel due to missing file. #3748

Answered by abravalheri
NeonFlames asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @NeonFlames I suggest the following changes in the code base:

--- a/pyproject.toml
+++ b/pyproject.toml
@@ -37,11 +37,10 @@ tuxemon = "tuxemon.__main__:main"
 include-package-data = true

 [tool.setuptools.packages.find]
-where = [""]
+where = ["."]
 include = ["tuxemon*"]

 [tool.setuptools.dynamic]
-version = {attr = "setup.get_version"}
 dependencies = {file = "requirements.txt"}

 [tool.black]
diff --git a/setup.py b/setup.py
index a55ea254..fce63d92 100644
--- a/setup.py
+++ b/setup.py
@@ -8,4 +8,4 @@ def get_version():


 # Configure setuptools
-setup()
+setup(version=get_version())

Please note that version = {attr = ...} will get a value by reading an attribute from a module and…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@NeonFlames
Comment options

@NeonFlames
Comment options

@abravalheri
Comment options

@NeonFlames
Comment options

@NeonFlames
Comment options

Answer selected by NeonFlames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants