Skip to content

Commit 8521a7d

Browse files
gauravp446gaurav pandey
andauthored
Fix #123 : updated Makefile to support windows (#128)
* Fix #123 : updated Makefile to support windows * Added steps in CONTRIBUTING.md for how to install make for windows * added note for make installation in windows * fixed pipeline issue Co-authored-by: gaurav pandey <[email protected]>
1 parent 6c11a3a commit 8521a7d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ environment** install an editable version of `drf-user` along with its tests,
180180
docs requirements and to avoid committing code that violates our style guide, we
181181
use [pre-commit](https://pre-commit.com/) hooks:
182182

183+
Note : For **windows** users, please refer this link to install choco [here](https://chocolatey.org/install) and then use following command to setup make
184+
185+
```sh
186+
$ choco install make
187+
```
188+
183189
```sh
184190
(env) $ cd drf-user
185191
(env) $ make install

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ VIRTUALENV = virtualenv --python=python3
44
PYTHON = $(VENV)/bin/python
55
VENV := $(shell echo $${VIRTUAL_ENV-.venv})
66

7+
# make it work on windows too
8+
ifeq ($(OS), Windows_NT)
9+
VENV = venv
10+
PYTHON=$(VENV)/Scripts/python
11+
endif
12+
713
TEST_FLAGS=--verbosity=2
814
COVER_FLAGS=--source=drf_user
915

0 commit comments

Comments
 (0)