Debian Codegraph @

debian/patches/sphinx-doc-no-download

raw
1 Author: Chiara Marmo <[email protected]>
2 Date: Thu Sep 8 06:54:57 2022 +0000
3 Description: prevent network access while building the docs
4
5 --- joblib.orig/examples/compressors_comparison.py
6 +++ joblib/examples/compressors_comparison.py
7 @@ -24,6 +24,10 @@
8 # and load it in a pandas dataframe.
9 import pandas as pd
10
11 +if int(os.getenv('DEBIAN_POLICY_SECTION_4_9_NO_NETWORK_ACCESS', '0')) > 0:
12 + raise IOError('Debian Policy Section 4.9 prohibits network access during build')
13 +
14 +
15 url = "https://github.com/joblib/dataset/raw/main/kddcup.data.gz"
16 names = (
17 "duration, protocol_type, service, flag, src_bytes, "