Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Commit 5d42348

Browse files
committed
Fails to locate PyQt DLL on Windows
0 parents  commit 5d42348

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bazel-*

WORKSPACE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
workspace(name = "poc")
2+
3+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4+
5+
6+
http_archive(
7+
name = "rules_python",
8+
url = "https://github.com/bazelbuild/rules_python/releases/download/0.3.0/rules_python-0.3.0.tar.gz",
9+
sha256 = "934c9ceb552e84577b0faf1e5a2f0450314985b4d8712b2b70717dc679fdc01b",
10+
)
11+
12+
load("@rules_python//python:pip.bzl", "pip_install")
13+
14+
pip_install(
15+
name="python_requirements",
16+
requirements="//main:requirements.txt"
17+
)

main/BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package(default_visibility = ["//visibility:public"])
2+
load("@python_requirements//:requirements.bzl", "requirement")
3+
4+
py_binary(
5+
name="main",
6+
srcs=[
7+
"main.py"
8+
],
9+
deps=[
10+
requirement("PyQt6"),
11+
],
12+
)

main/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from PyQt6.QtWidgets import QApplication, QLabel
2+
3+
app = QApplication([])
4+
label = QLabel("Hello World!")
5+
label.show()
6+
7+
app.exec()

main/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--index-url=https://mirrors.aliyun.com/pypi/simple
2+
--extra-index-url=https://pypi.tuna.tsinghua.edu.cn/simple
3+
4+
PyQt6

0 commit comments

Comments
 (0)