Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recover changes to build PyPI package #1276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.PHONY: pip

pip:
@echo
@echo "# make pip"
@echo
cd src/pip/install/ && python3 setup.py sdist
@echo
@echo "# All local packages:"
@ls src/pip/install/dist/ -Art
@echo
@echo "# Run the following command to upload the package"
@echo "> twine upload src/pip/install/dist/$(shell ls src/pip/install/dist/ -Art | tail -n 1)"
10 changes: 3 additions & 7 deletions src/pip/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
project(pip)

set(CMAKE_INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR}/pip)
set(CMAKE_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/pip)

IF (OMS_VERSION_STRING MATCHES "^(.*)\\.post(.*)-g(.*)$")
set(OMS_BUILD_TYPE "nightly")
ELSE()
Expand All @@ -11,7 +8,6 @@ ENDIF()

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py" "${CMAKE_CURRENT_BINARY_DIR}/setup.py" @ONLY)

install(FILES "${CMAKE_CURRENT_BINARY_DIR}/setup.py"
TYPE BIN)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/README.md" "${CMAKE_SOURCE_DIR}/OSMC-License.txt"
TYPE DATA)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/setup.py" DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/install/)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/README.md" DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/install/)
install(FILES "${CMAKE_SOURCE_DIR}/OSMC-License.txt" DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/install/)