Skip to content

Commit

Permalink
Build scubainit for setup.py develop command (#241)
Browse files Browse the repository at this point in the history
This fixes the problem where `pip install -e .` would not build
scubainit. By fixing this, dev_bootstrap.sh does everything necessary to
run scuba.
  • Loading branch information
JonathonReinhart authored Jan 2, 2024
1 parent a75a574 commit 3dc54d6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import scuba.version
from setuptools import setup, Command
from distutils.command.build import build
from setuptools.command.sdist import sdist
from setuptools.command.develop import develop
from subprocess import check_call
import os

Expand All @@ -27,7 +27,13 @@ def run(self):
class build_hook(build):
def run(self):
self.run_command("build_scubainit")
build.run(self)
super().run()


class develop(develop):
def run(self):
self.run_command("build_scubainit")
super().run()


################################################################################
Expand Down Expand Up @@ -70,5 +76,6 @@ def get_version():
cmdclass={
"build_scubainit": build_scubainit,
"build": build_hook,
"develop": develop,
},
)

0 comments on commit 3dc54d6

Please sign in to comment.