Skip to content

Commit 0698724

Browse files
Merge pull request #17 from mindsdb/fix-build
Fix building module
2 parents 57b0aff + 20b5104 commit 0698724

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ jobs:
2727
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2828
run: |
2929
# This uses the version string from __about__.py, which we checked matches the git tag above
30+
python setup.py build
3031
python setup.py sdist
3132
twine upload dist/*

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
with open("mindsdb_sql_parser/__about__.py") as fp:
66
exec(fp.read(), about)
77

8+
89
class Build(build_module.build):
910
def run(self):
1011
from mindsdb_sql_parser.parser import MindsDBParser
1112
try:
1213
MindsDBParser.build_to_file()
1314
except Exception as e:
1415
print(f'Problem with building syntax. Import might be not efficient: {e}')
15-
build_module.build.run(self)
16+
1617

1718
setuptools.setup(
1819
name=about['__title__'],
@@ -33,6 +34,6 @@ def run(self):
3334
],
3435
python_requires=">=3.6",
3536
cmdclass={
36-
'sdist': Build
37+
'build': Build
3738
},
3839
)

0 commit comments

Comments
 (0)