aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/Makefile13
-rw-r--r--python/README.md17
2 files changed, 17 insertions, 13 deletions
diff --git a/python/Makefile b/python/Makefile
index 646f330..d5d88f8 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -8,10 +8,12 @@
.PHONY: all
# Build
.PHONY: build
+# Develop
+.PHONY: develop
# Install
.PHONY: install
# Test
-.PHONY: test tests
+.PHONY: test
# Clean
.PHONY: clean
# Format
@@ -31,16 +33,17 @@ all: build
build: $(EXTENSIONS)
$(EXTENSIONS): $(EXT_SOURCES)
+ @cd .. && $(PYTHON) setup.py build_ext --inplace
+
+develop:
@cd .. && $(PYTHON) setup.py develop
install:
@cd .. && $(PYTHON) setup.py install
-test: tests
-
-tests: build
+test: build
@echo 'running tests'
- @$(PYTHON) -m unittest discover -p '*_test.py'
+ @$(PYTHON) -m unittest discover -v -p '*_test.py'
clean:
@cd .. && $(PYTHON) setup.py clean
diff --git a/python/README.md b/python/README.md
index 33cba56..3b0d8b2 100644
--- a/python/README.md
+++ b/python/README.md
@@ -17,19 +17,20 @@ following command from this directory:
### Development
-For development, reinstalling the module with every change is time
-consuming. Instead, we recommend using the `setuptools`
-"[development mode][]" to make the module available while still being
-able to edit the source files.
+You may run the following commands from this directory:
-For convenience, you may run the following commands from this directory:
-
- $ make # Deploy the module in "development mode"
+ $ make # Build the module in-place
- $ make tests # Test the module
+ $ make test # Test the module
$ make clean # Remove all temporary files and build output
+If you wish to make the module available while still being
+able to edit the source files, you can use the `setuptools`
+"[development mode][]":
+
+ $ make develop # Install the module in "development mode"
+
### Code Style
Brotli's code follows the [Google Python Style Guide][]. To