Skip to content

Commit

Permalink
chore(python): ensure client bundles are built by pip install -e .
Browse files Browse the repository at this point in the history
  • Loading branch information
jbms committed Mar 17, 2021
1 parent 6ecb4ab commit 8432f53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import tempfile
import time
import setuptools.command.build_ext
import setuptools.command.develop
import setuptools.command.install
import setuptools.command.sdist
import setuptools.command.test
Expand Down Expand Up @@ -108,6 +109,12 @@ def run(self):
super().run()


class DevelopCommand(setuptools.command.develop.develop):
def run(self):
_maybe_bundle_client(self)
super().run()


class BundleClientCommand(distutils.command.build.build):

user_options = [
Expand Down Expand Up @@ -274,5 +281,6 @@ def _no_guess_dev_version(version):
'bundle_client': BundleClientCommand,
'build_ext': BuildExtCommand,
'install': InstallCommand,
'develop': DevelopCommand,
},
)

0 comments on commit 8432f53

Please sign in to comment.