File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -57,27 +57,19 @@ install-data-hook:
57
57
58
58
# Python module installation
59
59
all-local :
60
- (cd $( srcdir) ; $( PYTHON) setup.py build \
61
- --build-base $(shell readlink -f $(builddir ) ) /build \
62
- --verbose)
60
+ cd $(srcdir ) ; python3 -m build --outdir $(shell readlink -f $(builddir ) ) /dist --wheel --sdist --verbose
63
61
64
62
python_prefix = --prefix=$(prefix )
65
63
66
64
install-exec-local :
67
65
$(INSTALL ) -d -m 770 $(DESTDIR ) /${localstatedir} /log/crmsh
68
- -mkdir -p $(DESTDIR )$(pkgpythondir )
69
- $(PYTHON ) $(srcdir ) /setup.py install \
70
- --root $(DESTDIR ) / \
71
- $(python_prefix ) \
72
- --record $(DESTDIR )$(pkgpythondir ) /install_files.txt \
73
- --verbose
66
+ python3 -m pip install --prefix=$(prefix ) $(shell readlink -f $(builddir ) ) /dist/* .whl
74
67
$(INSTALL ) -d -m 770 $(DESTDIR )$(CRM_CACHE_DIR )
75
68
76
69
uninstall-local :
77
70
rm -rf $(crmconfdir )
78
71
rm -rf $(docdir )
79
72
rm -rf $(DESTDIR )$(CRM_CACHE_DIR )
80
- cat $(DESTDIR )$(pkgpythondir ) /install_files.txt 2> /dev/null | xargs -r -i rm -rf $(DESTDIR ) /{}
81
73
rm -rf $(DESTDIR ) /${localstatedir} /log/crmsh
82
74
rm -rf $(DESTDIR )$(pkgpythondir )
83
75
@@ -88,7 +80,8 @@ uninstall-hook:
88
80
89
81
clean-local :
90
82
@echo " Removing intermediate python build files..."
91
- (cd $( srcdir) ; $( PYTHON) setup.py clean --all)
83
+ rm -rf $(builddir ) /dist
84
+ rm -rf $(builddir ) /build
92
85
@echo " Removing complete."
93
86
94
87
dist-clean-local : clean-local
You can’t perform that action at this time.
0 commit comments