|
10 | 10 | force['et_xmlfile'] = 'python-et-xmlfile'
|
11 | 11 | force['freetype'] = 'freetype2'
|
12 | 12 | force['glib'] = 'glib2'
|
| 13 | +force['graphite2'] = 'graphite' |
13 | 14 | force['importlib_metadata'] = 'python-importlib-metadata'
|
14 | 15 | force['intel-openmp'] = 'intel-openmp'
|
15 | 16 | force['ipython'] = 'ipython'
|
| 17 | +force['jbig'] = 'jbigkit' |
16 | 18 | force['jinja2'] = 'python-jinja'
|
| 19 | +force['jpeg'] = 'libjpeg-turbo' |
17 | 20 | force['jupyter'] = 'jupyter'
|
18 | 21 | force['jupyter_console'] = 'jupyter_console'
|
19 | 22 | force['jupyterlab'] = 'jupyterlab'
|
20 | 23 | force['jupyterlab_server'] = 'jupyterlab_server'
|
21 |
| -force['libgcc-ng'] = 'gcc' |
22 |
| -force['libgfortran-ng'] = 'gcc-fortran' |
| 24 | +force['libgcc-ng'] = 'gcc-libs' |
| 25 | +force['libuuid'] = 'libutil-linux' |
23 | 26 | force['lz4-c'] = 'lz4'
|
24 | 27 | force['mkl'] = 'intel-mkl'
|
25 | 28 | force['msgpack-python'] = 'python-msgpack'
|
26 | 29 | force['nbconvert'] = 'jupyter-nbconvert'
|
27 | 30 | force['nbformat'] = 'jupyter-nbformat'
|
28 | 31 | force['notebook'] = 'jupyter-notebook'
|
29 |
| -force['numpy-base'] = 'python-numpy' |
| 32 | +force['numpy-base'] = 'python-numpy-mkl' |
| 33 | +force['pandoc'] = 'pandoc' |
| 34 | +force['py-lief'] = 'lief' |
| 35 | +force['pyyaml'] = 'python-yaml' |
30 | 36 | force['pyqt'] = 'python-pyqt5'
|
31 | 37 | force['qt'] = 'qt5-base'
|
32 | 38 | force['ruamel_yaml'] = 'python-ruamel-yaml'
|
| 39 | +force['scipy'] = 'python-scipy-mkl' |
33 | 40 | force['spyder'] = 'spyder'
|
34 | 41 | force['widgetsnbextension'] = 'jupyter-widgetsnbextension'
|
| 42 | +force['yaml'] = 'libyaml' |
35 | 43 |
|
36 | 44 | ignore = []
|
37 |
| -ignore.append('_ipyw_jlab_nb_ext_conf') |
38 |
| -ignore.append('anaconda') |
39 |
| -ignore.append('anaconda-client') |
40 |
| -ignore.append('anaconda-navigator') |
41 |
| -ignore.append('anaconda-project') |
42 |
| -ignore.append('backports') |
43 |
| -ignore.append('backports.os') |
44 |
| -ignore.append('backports.shutil_get_terminal_size') |
45 |
| -ignore.append('conda-build') |
46 |
| -ignore.append('conda-env') |
47 |
| -ignore.append('conda-verify') |
48 |
| -ignore.append('clyent') |
49 |
| -ignore.append('distributed') |
50 |
| -ignore.append('libcurl') |
51 |
| -ignore.append('navigator-updater') |
52 |
| -ignore.append('singledispatch') |
53 |
| -ignore.append('unicodecsv') |
54 |
| - |
55 |
| -# AUR |
56 |
| -ignore.append('astropy') |
57 |
| -ignore.append('backcall') |
58 |
| -ignore.append('bitarray') |
59 |
| -ignore.append('bkcharts') |
60 |
| -ignore.append('bokeh') |
| 45 | +ignore.append('_ipyw_jlab_nb_ext_conf') # anaconda related |
| 46 | +ignore.append('anaconda') # anaconda related |
| 47 | +ignore.append('anaconda-client') # anaconda related |
| 48 | +ignore.append('anaconda-navigator') # anaconda related |
| 49 | +ignore.append('anaconda-project') # anaconda related |
| 50 | +ignore.append('backcall') # already provided by ipython |
| 51 | +ignore.append('backports') # not needed for python3 |
| 52 | +ignore.append('backports.os') # not needed for python3 |
| 53 | +ignore.append('backports.shutil_get_terminal_size') # not needed for python3 |
| 54 | +ignore.append('bkcharts') # unmaintained |
| 55 | +ignore.append('blas') # empty |
| 56 | +ignore.append('conda-build') # anaconda related |
| 57 | +ignore.append('conda-env') # anaconda related |
| 58 | +ignore.append('conda-verify') # anaconda related |
| 59 | +ignore.append('clyent') # not needed for linux |
| 60 | +ignore.append('dask-core') # already provided by python-dask |
| 61 | +ignore.append('distributed') # should use python-setuptools instead |
| 62 | +ignore.append('get_terminal_size') # empty |
| 63 | +ignore.append('ipython_genutils') # will be removed |
| 64 | +ignore.append('libcurl') # already provided by curl |
| 65 | +ignore.append('libgfortran-ng') # already provided by gcc-libs |
| 66 | +ignore.append('liblief') # already provided by lief |
| 67 | +ignore.append('libstdcxx-ng') # already provided by gcc-libs |
| 68 | +ignore.append('navigator-updater') # anaconda related |
| 69 | +ignore.append('simplegeneric') # already provided by ipython |
| 70 | +ignore.append('singledispatch') # not needed for python3 |
| 71 | +ignore.append('sphinxcontrib') # empty |
| 72 | +ignore.append('unicodecsv') # not needed for python3 |
| 73 | + |
| 74 | +# In AUR but not in arch4edu yet |
61 | 75 | ignore.append('cytoolz')
|
62 | 76 | ignore.append('dask')
|
63 |
| -ignore.append('fastcache') |
64 | 77 | ignore.append('heapdict')
|
65 |
| -ignore.append('locket') |
66 |
| -ignore.append('multipledispatch') |
67 | 78 | ignore.append('partd')
|
68 |
| -ignore.append('pep8') |
69 |
| -ignore.append('pycrypto') |
70 |
| -ignore.append('pytest-arraydiff') |
71 |
| -ignore.append('pytest-astropy') |
72 |
| -ignore.append('pytest-doctestplus') |
73 |
| -ignore.append('pytest-openfiles') |
74 |
| -ignore.append('pytest-remotedata') |
75 |
| -ignore.append('simplegeneric') |
76 |
| -ignore.append('sortedcollections') |
77 | 79 | ignore.append('toolz')
|
78 |
| -ignore.append('wurlitzer') |
79 | 80 | ignore.append('zict')
|
80 | 81 |
|
81 |
| -run_cmd(['sudo', 'pacman', '-Sy'], silent=True) |
82 |
| - |
83 | 82 | def check(pkgname):
|
84 | 83 | try:
|
85 | 84 | output = run_cmd(['pacman', '-Ssq', pkgname], silent=True)
|
86 | 85 | except:
|
87 | 86 | output = ''
|
88 | 87 | output = output.split('\n')
|
89 |
| - if pkgname in output: |
90 |
| - return True |
91 |
| - output = run_cmd(['yay', '-Ssq', pkgname], silent=True) |
92 |
| - output = output.split('\n') |
93 | 88 | return pkgname in output
|
94 | 89 |
|
| 90 | +run_cmd(['sudo', 'pacman', '-Sy']) |
95 | 91 | lines = run_cmd(['ls', '/opt/anaconda/conda-meta'], silent=True).split('\n')
|
96 | 92 | output = []
|
| 93 | +failed = False |
97 | 94 |
|
98 | 95 | for line in tqdm(lines):
|
99 | 96 | line = line.split('-')
|
@@ -125,7 +122,11 @@ def check(pkgname):
|
125 | 122 | output.append(package)
|
126 | 123 | continue
|
127 | 124 |
|
128 |
| - output.append('# failed %s' % '-'.join(line)) |
| 125 | + print('%s failed' % '-'.join(line)) |
| 126 | + failed = True |
| 127 | + |
| 128 | +if failed: |
| 129 | + sys.exit(1) |
129 | 130 |
|
130 | 131 | with open('packages.txt', 'w') as f:
|
131 | 132 | f.writelines('\n'.join(output))
|
|
0 commit comments