File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,25 @@ def requirements(self):
56
56
self .requires ("uchardet/0.0.8" )
57
57
self .requires ("utfcpp/4.0.4" )
58
58
59
+ pdf2htmlEX_version = None
60
+ wvWare_version = None
61
+
59
62
if self .options .get_safe ("with_pdf2htmlEX" ):
60
- self . requires ( "pdf2htmlex/ 0.18.8.rc1-20240905-git-vili")
63
+ pdf2htmlEX_version = " 0.18.8.rc1-20240905-git-vili"
61
64
if self .options .get_safe ("with_wvWare" ):
62
- self . requires ( "wvware/ 1.2.9-vili")
65
+ wvWare_version = " 1.2.9-vili"
63
66
64
67
if Version (self .version ) == "9.9.9" :
65
68
self .requires ("cpp-httplib/0.16.3" )
66
- self .requires ("pdf2htmlex/0.18.8.rc1-odr-pr1" )
67
- self .requires ("wvware/1.2.9-odr" )
69
+ if self .options .get_safe ("with_pdf2htmlEX" ):
70
+ pdf2htmlEX_version = "0.18.8.rc1-odr-pr1"
71
+ if self .options .get_safe ("with_wvWare" ):
72
+ wvWare_version = "1.2.9-odr"
73
+
74
+ if pdf2htmlEX_version is not None :
75
+ self .requires (f"pdf2htmlEX/{ pdf2htmlEX_version } " )
76
+ if wvWare_version is not None :
77
+ self .requires (f"wvWare/{ wvWare_version } " )
68
78
69
79
def build_requirements (self ):
70
80
if Version (self .version ) <= "2.0.0" :
You can’t perform that action at this time.
0 commit comments