From a740ba4f42b900d60286f8b9a4faed538d344f15 Mon Sep 17 00:00:00 2001 From: vitorramos Date: Mon, 30 Jan 2023 05:33:49 +0100 Subject: [PATCH] fix publish --- .github/workflows/python-publish.yml | 2 +- install.sh | 2 +- performance_features/workload.cpp | 1 + setup.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3783994..59f57c8 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,7 +21,7 @@ jobs: ./install.sh rm -r dist - name: Build package - run: python -m build sdist + run: python setup.py build sdist - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: diff --git a/install.sh b/install.sh index 6e599fe..68c7250 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash sudo apt update -sudo apt install g++ gcc swig libpfm4-dev python3-dev python3-pip +sudo apt install -y g++ gcc swig libpfm4-dev python3-dev python3-pip python3 setup.py build python3 setup.py install diff --git a/performance_features/workload.cpp b/performance_features/workload.cpp index 9cd75ce..5859bc8 100644 --- a/performance_features/workload.cpp +++ b/performance_features/workload.cpp @@ -72,6 +72,7 @@ int Workload::create_wrokload(const vector& args) { return pid; } + return 0; } void Workload::wait_finish() diff --git a/setup.py b/setup.py index 42e2f08..fb6c114 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def run(self): setuptools.setup( cmdclass={"build_ext": cbuild_ext}, name="performance_features", - version="0.2.5", + version="0.2.6", packages=["perfmon", "performance_features"], package_dir={"perfmon": "perfmon", "performance_features": "performance_features"}, py_modules=["perfmon.perfmon_int", "performance_features.profiler"],