forked from adobe-apiplatform/user-sync.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (26 loc) · 736 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output_dir = dist
output_filename = user-sync
prebuilt_dir = external
ifeq ($(OS),Windows_NT)
output_file_extension = .pex
rm_path := $(shell python -c "import distutils.spawn; print(distutils.spawn.find_executable('rm'))")
ifeq ($(rm_path),None)
RM := rmdir /S /Q
else
RM := $(rm_path) -rf
endif
else
output_file_extension = ""
RM := rm -rf
endif
pex:
python -m pip install --upgrade pip
python -m pip install --upgrade 'wheel<0.30.0' requests pex==1.5.3
python .build/pre_build.py
-$(RM) $(output_dir)
pex -v -o $(output_dir)/$(output_filename)$(output_file_extension) -m user_sync.app \
-f $(prebuilt_dir) \
--disable-cache \
--not-zip-safe .
test:
nosetests --no-byte-compile tests