Skip to content
Snippets Groups Projects
Commit 8c175db7 authored by Christophe Monniez's avatar Christophe Monniez
Browse files

[FIX] packaging: fix windows installer requirements


When building the windows installer, the requirements are installed one
by one to avoid a complete crash when a requirement is not installable
on windows.

It appears that lines that contains comments are not installed.

With this commit the comment part is properly removed from requirement
lines when calling pip.

closes odoo/odoo#100662

Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
parent 0c0dae30
No related branches found
No related tags found
No related merge requests found
......@@ -28,12 +28,12 @@ server_clean:
allinone: server_clean
cp $(SERVER_DIRECTORY)/requirements.txt $(WINPY32_DIR)/
-(cd $(WINPY32_DIR) && ./python.exe -m pip install --upgrade pip)
-(cd $(WINPY32_DIR) && cat requirements.txt | while read PAC ; do Scripts/pip3.exe install "$${PAC}" ; done)
-(cd $(WINPY32_DIR) && cat requirements.txt | while read PAC ; do Scripts/pip3.exe install "$${PAC%%#*}" ; done)
-(cd $(WINPY32_DIR) && Scripts/pip3.exe freeze)
rm $(WINPY32_DIR)/requirements.txt
cp $(SERVER_DIRECTORY)/requirements.txt $(WINPY64_DIR)/
-(cd $(WINPY64_DIR) && ./python.exe -m pip install --upgrade pip)
-(cd $(WINPY64_DIR) && cat requirements.txt | while read PAC ; do Scripts/pip3.exe install "$${PAC}" ; done)
-(cd $(WINPY64_DIR) && cat requirements.txt | while read PAC ; do Scripts/pip3.exe install "$${PAC%%#*}" ; done)
-(cd $(WINPY64_DIR) && Scripts/pip3.exe freeze)
rm $(WINPY64_DIR)/requirements.txt
(cd $(SERVER_DIRECTORY)/setup/win32 && $(LAUNCH_MAKENSIS))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment