File: sphinx-doc-no-download

package info (click to toggle)
joblib 1.4.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,360 kB
  • sloc: python: 14,772; sh: 138; makefile: 42
file content (17 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Chiara Marmo <marmochiaskl@gmail.com>
Date:   Thu Sep 8 06:54:57 2022 +0000
Description: prevent network access while building the docs

--- a/examples/compressors_comparison.py
+++ b/examples/compressors_comparison.py
@@ -25,6 +25,10 @@
 
 import pandas as pd
 
+if int(os.getenv('DEBIAN_POLICY_SECTION_4_9_NO_NETWORK_ACCESS', '0')) > 0:
+    raise IOError('Debian Policy Section 4.9 prohibits network access during build')
+
+
 url = "https://github.com/joblib/dataset/raw/main/kddcup.data.gz"
 names = ("duration, protocol_type, service, flag, src_bytes, "
          "dst_bytes, land, wrong_fragment, urgent, hot, "