Skip to content

Commit

Permalink
Merge pull request #120 from jarl-haggerty/master
Browse files Browse the repository at this point in the history
Run build_ext step before build_py
  • Loading branch information
kne committed Jan 16, 2021
2 parents ed9d7b0 + 12507e8 commit f861719
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Expand Up @@ -21,6 +21,12 @@

import setuptools
from setuptools import (setup, Extension)
from setuptools.command.build_py import build_py

class build_py_after_build_ext(build_py):
def run(self):
self.run_command('build_ext')
return super().run()

# release version number
box2d_version = '2.3'
Expand Down Expand Up @@ -138,6 +144,7 @@ def write_init():
},
ext_modules = [ pybox2d_extension ],
include_package_data=True,
cmdclass={"build_py": build_py_after_build_ext},
)

# run the actual setup from distutils
Expand Down

0 comments on commit f861719

Please sign in to comment.