p≡p for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
850 B

  1. # build dirs
  2. BUILD_DIR = $(ProjectDir)..\build
  3. DIST_DIR = $(ProjectDir)..\dist
  4. # create wheel and egg package in dist
  5. dist: dist-whl dist-egg
  6. # create wheel package in dist
  7. dist-whl: compile
  8. PY -3.8-32 setup.py bdist_wheel
  9. # create egg package in dist
  10. dist-egg: compile
  11. PY -3.8-32 setup.py bdist_egg
  12. # build the module into build
  13. compile:
  14. CD..
  15. PY -3.8-32 setup.py build_ext --debug
  16. # delete output directories
  17. clean:
  18. @if exist $(BUILD_DIR) rmdir /S /Q $(BUILD_DIR)
  19. @if exist $(DIST_DIR) rmdir /S /Q $(DIST_DIR)
  20. # create directories and build application
  21. all: clean dist
  22. # release build
  23. release: clean
  24. CD..
  25. PY -3.8-32 setup.py build_ext
  26. PY -3.8-32 setup.py bdist_wheel
  27. #debug build
  28. debug: clean
  29. CD..
  30. PY -3.8-32 setup.py build_ext --debug
  31. PY -3.8-32 setup.py bdist_wheel