CMakeLists.txt 160 KB
Newer Older
1
#---General parameters--------------------------------------------------------------------------------------------
2
set(Python_cmd ${Python_home}/bin/${PYTHON})
Pere Mato Vila's avatar
Pere Mato Vila committed
3
set(PythonFWK_cmd ${PythonFWK_home}/Library/Frameworks/Python.framework/Versions/Current/bin/${PYTHON})
4
set(GenURL http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources)
5
#set(MakeSitePackagesDir ${CMAKE_COMMAND} -E  make_directory <INSTALL_DIR>/lib/python${Python_config_version_twodigit}/site-packages)
6

pmendez's avatar
pmendez committed
7
#---Addtional deopendencies to matplotlib-----------------
Ivan Razumov's avatar
Ivan Razumov committed
8
set(matplotlib_extra_deps python_dateutil six tornado certifi messaging cycler)
9

Pere Mato Vila's avatar
Pere Mato Vila committed
10
11
#---Sometimes you need to use the Python insalled as Framework----------------------------------------------------
if (APPLE)
Pere Mato Vila's avatar
Pere Mato Vila committed
12
  set (python_fwk_command ${Python_cmd})
Pere Mato Vila's avatar
Pere Mato Vila committed
13
else()
Pere Mato Vila's avatar
Pere Mato Vila committed
14
  set (python_fwk_command ${Python_cmd})
Pere Mato Vila's avatar
Pere Mato Vila committed
15
16
endif()

17
18
set(PySetupOptions --root=/ --prefix=<INSTALL_DIR>)

19
20
21
#=================================================================================================================
# This is only a placeholder where all the sub-packages will be installed
#=================================================================================================================
22
LCGPackage_set_home(pytools)
23

24
##---setuptools------------------------------------------------------------------------------------------------------
25
26
27
28
29
30
31
32
33
34
35
# This declaration is located in ../projects/CMakeList.txt
#LCGPackage_Add(
#  setuptools
#  URL ${GenURL}/setuptools-${setuptools_native_version}.tar.gz
#  CONFIGURE_COMMAND <VOID>
#  BUILD_COMMAND <VOID>
#  INSTALL_COMMAND ${MakeSitePackagesDir}
#          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
#  BUILD_IN_SOURCE 1
#  DEPENDS Python
#)
Ivan Razumov's avatar
Ivan Razumov committed
36

37
38
39
40
41
42
43
44
#---setuptools_scm--------------------------------------------------------------------------------------------
LCGPackage_Add(
  setuptools_scm
  URL ${GenURL}/setuptools_scm-${setuptools_scm_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND   <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
45
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
46
47
48
49
50
51
52
53
54
55
56
57
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---pkgconfig------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pkgconfig
  URL ${GenURL}/pkgconfig-${pkgconfig_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
58
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
59
60
61
62
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

63
64
65
#---wheel------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  wheel
66
67
68
69
  URL ${GenURL}/wheel-${wheel_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
70
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
71
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
72
73
74
75
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

76
77
78
79
80
81
82
83
84
85
86
87
88
#---pip------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pip
  URL ${GenURL}/pip-${pip_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools wheel
)

89
90
91
92
93
94
95
96
97
98
99
100
# Superseeded by setuptools
# #---distribute---------------------------------------------------------------------------------------------------------
# LCGPackage_Add(
#   distribute
#   URL ${GenURL}/distribute-${distribute_native_version}.tar.gz
#   CONFIGURE_COMMAND <VOID>
#   BUILD_COMMAND <VOID>
#   INSTALL_COMMAND ${MakeSitePackagesDir}
#           COMMAND ${PYTHON} setup.py install ${PySetupOptions}
#   BUILD_IN_SOURCE 1
#   DEPENDS Python setuptools
# )
101

102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#---asn1crypto---------------------------------------------------------------------------------------------------
LCGPackage_Add(
  asn1crypto
  URL ${GenURL}/asn1crypto-${asn1crypto_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---pycparser----------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pycparser
Ivan Razumov's avatar
Ivan Razumov committed
118
  URL ${GenURL}/pycparser-${pycparser_native_version}.zip
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---cffi---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  cffi
  URL ${GenURL}/cffi-${cffi_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools pycparser libffi
)

141
142
143
#---lxml---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  lxml
144
  URL ${GenURL}/lxml-${lxml_native_version}.tar.gz
145
  CONFIGURE_COMMAND <VOID>
146
147
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
148
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
149
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
150
  BUILD_IN_SOURCE 1
151
  DEPENDS Python setuptools libxml2 libxslt
152
)
153

Richard Bachmann's avatar
Richard Bachmann committed
154
155
156
157
158
159
160
161
162
163
164
165
166
#---pytz-------------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pytz
  URL ${GenURL}/pytz-${pytz_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

Richard Bachmann's avatar
Richard Bachmann committed
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#---six------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  six
  URL ${GenURL}/six-${six_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
          #IF LCG_SOURCE_INSTALL THEN COMMAND $ENV{SHELL} -c "chmod -R 755 <INSTALL_DIR>/../share/sources/six" ENDIF
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

Richard Bachmann's avatar
Richard Bachmann committed
181
182
183
184
185
186
187
188
189
190
191
192
193
#---python_dateutil------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  python_dateutil
  URL ${GenURL}/python-dateutil-${python_dateutil_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools six setuptools_scm
)

194
195
196
197
198
199
200
201
202
203
204
205
206
#---attrs-------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  attrs
  URL ${GenURL}/attrs-${attrs_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND  <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

Richard Bachmann's avatar
Richard Bachmann committed
207
208
209
210
211
212
213
214
215
216
217
218
219
#---enum34---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  enum34
  URL ${GenURL}/enum34-${enum34_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

Richard Bachmann's avatar
Richard Bachmann committed
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
#---hypothesis--------------------------------------------------------------------------------------------------
LCGPackage_Add(
  hypothesis
  URL ${GenURL}/hypothesis-${hypothesis_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools attrs IF Python_native_version VERSION_LESS 3 THEN enum34 ENDIF
)

#---cython------------------------------------------------------------------------------------------
LCGPackage_Add(
  cython
  URL ${GenURL}/Cython-<NATIVE_VERSION>.tar.gz
  CONFIGURE_COMMAND <VOID>
  #BUILD_COMMAND ${PYTHON} setup.py -v build -e "/usr/bin/env python"
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
          COMMAND bash -c "sed -i.bak -e 's:${Python_home}/bin/:/usr/bin/env :g' <INSTALL_DIR>/bin/cython"
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
  REVISION 1
)

#---pandas------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pandas
  URL ${GenURL}/pandas-${pandas_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools pytz python_dateutil numpy cython hypothesis
)

#---pyparsing------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyparsing
  URL ${GenURL}/pyparsing-${pyparsing_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---cycler------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  cycler
  URL ${GenURL}/cycler-${cycler_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools six
)

#---kiwisolver---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  kiwisolver
  URL ${GenURL}/kiwisolver-${kiwisolver_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---nose------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  nose
  URL ${GenURL}/nose-${nose_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---mock------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  mock
  URL ${GenURL}/mock-${mock_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
  IF mock_native_version VERSION_EQUAL 2.0.0 THEN
    funcsigs pbr
  ENDIF
)

Richard Bachmann's avatar
Richard Bachmann committed
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
#---pycairo-------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pycairo
  URL ${GenURL}/pycairo-${pycairo_native_version}.tar.gz
  IF APPLE THEN ENVIRONMENT CPPFLAGS=-I/opt/X11/include ENDIF 
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools cairo
)

#---certifi------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  certifi
  URL ${GenURL}/certifi-${certifi_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

Richard Bachmann's avatar
Richard Bachmann committed
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
#---backports------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  backports
  DOWNLOAD_COMMAND <VOID>
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} ${pip_home}/bin/pip install ${PySetupOptions}
                 ${GenURL}/backports.ssl_match_hostname-${backports.ssl_match_hostname_native_version}.tar.gz
          COMMAND ${PYTHON} ${pip_home}/bin/pip install ${PySetupOptions}
                 ${GenURL}/backports.shutil_get_terminal_size-${backports.shutil_get_terminal_size_native_version}.tar.gz
          COMMAND ${PYTHON} ${pip_home}/bin/pip install --global-option "build_ext" --global-option "-I${xz_home}/include" --global-option "-L${xz_home}/lib" --prefix=<INSTALL_DIR> ${GenURL}/backports.lzma-${backports.lzma_native_version}.tar.gz
          COMMAND ${PYTHON} ${pip_home}/bin/pip install  ${PySetupOptions}
                  ${GenURL}/configparser-${configparser_native_version}.tar.gz  
          COMMAND ${PYTHON} ${pip_home}/bin/pip install  ${PySetupOptions}
                  ${GenURL}/backports.functools_lru_cache-${backports.functools_lru_cache_native_version}.tar.gz
   BUILD_IN_SOURCE 1
   REVISION ${backports.ssl_match_hostname_native_version}-${backports.shutil_get_terminal_size_native_version}-${backports.lzma_native_version}-${configparser_native_version}-${backports.functools_lru_cache-native_version}
  DEPENDS Python setuptools pip xz setuptools_scm
)

Richard Bachmann's avatar
Richard Bachmann committed
378
#---backports_abc-----------------------------------------------------------------------------------------------
Richard Bachmann's avatar
Richard Bachmann committed
379
LCGPackage_Add(
Richard Bachmann's avatar
Richard Bachmann committed
380
381
  backports_abc
  URL ${GenURL}/backports_abc-${backports_abc_native_version}.tar.gz
Richard Bachmann's avatar
Richard Bachmann committed
382
383
384
385
386
387
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
Richard Bachmann's avatar
Richard Bachmann committed
388
389
390
391
392
393
394
395
396
397
398
399
400
401
  DEPENDS Python setuptools
)

#---singledispatch----------------------------------------------------------------------------------------------
LCGPackage_Add(
  singledispatch
  URL ${GenURL}/singledispatch-${singledispatch_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools six
Richard Bachmann's avatar
Richard Bachmann committed
402
403
)

Richard Bachmann's avatar
Richard Bachmann committed
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
#---futures------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  futures
  URL ${GenURL}/futures-${futures_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
  REVISION 1
)

#---tornado------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  tornado
  URL ${GenURL}/tornado-${tornado_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools certifi backports
    IF <VERSION> VERSION_GREATER 4.5 AND Python_native_version VERSION_LESS 3 THEN backports_abc singledispatch futures ENDIF
)

432
433
434
435
436
437
438
439
440
441
442
443
#---messaging------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  messaging
  URL ${GenURL}/messaging-${messaging_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
Richard Bachmann's avatar
Richard Bachmann committed
444

Richard Bachmann's avatar
Richard Bachmann committed
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
#---matplotlib----------------------------------------------------------------------------------------------------
if(APPLE)
  set(matplotlib_extra_deps ${matplotlib_extra_deps} freetype png pkg_config)
endif()
LCGPackage_Add(
  matplotlib
  URL ${GenURL}/matplotlib-${matplotlib_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${CMAKE_COMMAND} -Durl=https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip
                                   -Dsource_dir=<INSTALL_DIR>/lib/python${Python_config_version_twodigit}/site-packages/matplotlib/backends/web_backend
                                   -P ${CMAKE_SOURCE_DIR}/cmake/scripts/DownloadURL.cmake
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools numpy nose pyparsing pytz mock backports kiwisolver pycairo ${matplotlib_extra_deps}
  REVISION 1
)
464

Richard Bachmann's avatar
Richard Bachmann committed
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
#---scipy---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  scipy
  URL ${GenURL}/scipy-${scipy_native_version}.tar.gz
  CONFIGURE_COMMAND ${CMAKE_COMMAND} -E copy ${numpy_home}/lib/python${Python_config_version_twodigit}/site-packages/numpy/distutils/site.cfg <SOURCE_DIR>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  REVISION 1
  DEPENDS Python setuptools numpy lapack
)

#---retrying---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  retrying
  URL ${GenURL}/retrying-${retrying_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python six
)

#---plotly-----------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  plotly
  URL ${GenURL}/plotly.py-${plotly_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
499
          COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR>/packages/python/plotly/ ${PYTHON} setup.py install ${PySetupOptions}
Richard Bachmann's avatar
Richard Bachmann committed
500
501
502
503
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python six retrying
)
504

505
#---catboost---------------------------------------------------------------------------------------------------------
506
if (Python_native_version VERSION_LESS 3)
Rafał Pachołek's avatar
Rafał Pachołek committed
507
508
509
510
    set(pyver 2)
else()
    set(pyver 3)
endif()
511
512
513
514
LCGPackage_Add(
  catboost
  URL ${GenURL}/catboost-${catboost_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
515
  ENVIRONMENT YA_CACHE_DIR=/tmp/$ENV{USER}/.cache 
Dmitri Konstantinov's avatar
Dmitri Konstantinov committed
516
517
518
519
520
521
  BUILD_COMMAND bash -c "unset CC && unset CXX && ${PYTHON} ya make -r catboost/libs/model_interface -o <INSTALL_DIR> -r -DUSE_ARCADIA_PYTHON=no --rebuild -DOS_SDK=local --host-platform-flag OS_SDK=local -DPYTHON_CONFIG=${Python_home}/bin/python${pyver}-config" 
        COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR>/ cmake catboost/libs/standalone_evaluator/ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_CXX_FLAGS=-I${flatbuffers_home}/include
        COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR>/ make
  INSTALL_COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/catboost/include
          COMMAND ${CMAKE_COMMAND} -E make_directory <INSTALL_DIR>/catboost/bin
          COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/catboost_demo <INSTALL_DIR>/catboost/bin/standalone_evaluator 
522
523
524
          COMMAND ${CMAKE_COMMAND} -DSRC=<SOURCE_DIR>/catboost/libs/model_interface/*.h -DDST=<INSTALL_DIR>/catboost/include/. -P ${CMAKE_SOURCE_DIR}/cmake/scripts/copy_wildcard.cmake
          COMMAND ${CMAKE_COMMAND} -DSRC=<SOURCE_DIR>/catboost/libs/standalone_evaluator/*.h -DDST=<INSTALL_DIR>/catboost/include/. -P ${CMAKE_SOURCE_DIR}/cmake/scripts/copy_wildcard.cmake
          COMMAND rm -rf ${YA_CACHE_DIR}
525
  BUILD_IN_SOURCE 1
526
  DEPENDS Python flatbuffers numpy graphviz pandas matplotlib scipy plotly six
527
  REVISION 2
528
)
529

530
#---sqlalchemy---------------------------------------------------------------------------------------------------
531
532
LCGPackage_Add(
  sqlalchemy
533
  URL ${GenURL}/SQLAlchemy-${sqlalchemy_native_version}.tar.gz
534
  CONFIGURE_COMMAND <VOID>
535
536
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
537
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
538
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
539
  BUILD_IN_SOURCE 1
540
  DEPENDS Python setuptools
541
542
543
544
545
)

#---genshi------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  genshi
546
  URL ${GenURL}/Genshi-${genshi_native_version}.tar.gz
547
  CONFIGURE_COMMAND <VOID>
548
  BUILD_COMMAND <VOID>
Javier Cervantes's avatar
Javier Cervantes committed
549
  INSTALL_COMMAND ${MakeSitePackagesDir}
550
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
551
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
552
  BUILD_IN_SOURCE 1
Ivan Razumov's avatar
Ivan Razumov committed
553
  DEPENDS Python setuptools
554
)
555
556
557
#---prctl------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  prctl
558
  URL ${GenURL}/python-prctl-${prctl_native_version}.tar.gz
559
560
561
562
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
563
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
564
565
566
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
567
568
569
570

#---4suite------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  4suite
571
  URL ${GenURL}/4Suite-XML-${4suite_native_version}.tar.gz
572
  CONFIGURE_COMMAND <VOID>
573
  BUILD_COMMAND <VOID>
574
575
576
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
577
578
579
580
  BUILD_IN_SOURCE 1
  DEPENDS Python
)

581
582
#---accsoft-nxcals-data-access-python---------------------------------------------------------------------------
LCGPackage_Add(
583
584
   accsoft_nxcals_data_access_python
   URL ${GenURL}/accsoft-nxcals-data-access-python-${accsoft_nxcals_data_access_python_native_version}.tar.gz
585
586
   CONFIGURE_COMMAND <VOID>
   BUILD_COMMAND <VOID>
Rafał Pachołek's avatar
Rafał Pachołek committed
587
   ENVIRONMENT nxcals_version=${nxcals_data_access_native_version}
588
   INSTALL_COMMAND ${MakeSitePackagesDir}
589
590
        COMMAND ${PYTHON} setup.py install ${PySetupOptions}
        COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR> 
591
   BUILD_IN_SOURCE 1
592
   DEPENDS Python setuptools nxcals_data_access
593
594
595
)


596
#---cx_oracle------------------------------------------------------------------------------------------------------
597
598
LCGPackage_Add(
  cx_oracle
599
  URL ${GenURL}/cx_Oracle-${cx_oracle_native_version}.tar.gz
600
  CONFIGURE_COMMAND <VOID>
601
602
603
  BUILD_COMMAND <VOID>
  ENVIRONMENT ORACLE_HOME=${oracle_home}
  INSTALL_COMMAND ${MakeSitePackagesDir}
604
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
605
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
606
  BUILD_IN_SOURCE 1
607
  DEPENDS Python setuptools oracle
608
)
609

610
#---simplejson------------------------------------------------------------------------------------------------------
611
LCGPackage_Add(
612
613
  simplejson
  URL ${GenURL}/simplejson-${simplejson_native_version}.tar.gz
614
  CONFIGURE_COMMAND <VOID>
615
616
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
617
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
618
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
619
  BUILD_IN_SOURCE 1
620
  DEPENDS Python setuptools
621
622
)

623
624
625
626
627
628
629
#---pbr---------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pbr
  URL ${GenURL}/pbr-${pbr_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
630
  COMMAND ${PYTHON} setup.py install ${PySetupOptions}
631
  COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
632
633
634
635
636
637
638
639
640
641
642
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---funcsigs---------------------------------------------------------------------------------------------------
LCGPackage_Add(
  funcsigs
  URL ${GenURL}/funcsigs-${funcsigs_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
643
  COMMAND ${PYTHON} setup.py install ${PySetupOptions}
644
  COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
645
646
647
648
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

649
650
651
#---multiprocessing------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  multiprocessing
652
  URL ${GenURL}/multiprocessing-${multiprocessing_native_version}.tar.gz
653
  CONFIGURE_COMMAND <VOID>
654
  BUILD_COMMAND <VOID>
655
656
657
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
658
  BUILD_IN_SOURCE 1
659
  DEPENDS Python setuptools
660
661
)

Richard Bachmann's avatar
Richard Bachmann committed
662
#---mysql_connector_python-----------------------------------------------------------------------------------------------
663
LCGPackage_Add(
Richard Bachmann's avatar
Richard Bachmann committed
664
665
  mysql_connector_python
  URL ${GenURL}/mysql-connector-python-${mysql_connector_python_native_version}.tar.gz
666
667
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
668
669
670
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
671
  BUILD_IN_SOURCE 1
672
  DEPENDS Python setuptools mysql protobuf
pmendez's avatar
pmendez committed
673
674
)

675
676
677
678
679
680
681
682
683
684
685
686
687
#---pyrsistent-----------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyrsistent
  URL ${GenURL}/pyrsistent-${pyrsistent_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools six
)

688
#---pythonsollya---------------------------------------------------------------------------------------
Ivan Razumov's avatar
Ivan Razumov committed
689
690
set(cython_pythonpath ${cython_home}/lib/python${Python_config_version_twodigit}/site-packages)
set(python_pythonpath ${python_home}/lib/python${Python_config_version_twodigit}/site-packages)
691
692
693
694
LCGPackage_Add(
  pythonsollya
  URL ${GenURL}/pythonsollya-${pythonsollya_native_version}.tgz
  CONFIGURE_COMMAND <VOID>
695
  BUILD_COMMAND ${MAKE} PREFIX=<INSTALL_DIR> SOLLYA_DIR=${sollya_home}
696
                MPFI_DIR=${mpfi_home} MPFR_DIR=${mpfr_home} IF NOT ${gmp_home} STREQUAL TakenFromSystem THEN GMP_DIR=${gmp_home} ENDIF
697
698
699
                PYTHON=${Python_home}/bin/python PIP=${pip_home}/bin/pip
#  INSTALL_COMMAND ${MAKE} PREFIX=<INSTALL_DIR> -j1 install
  INSTALL_COMMAND ${PYTHON} setup.py install ${PySetupOptions}
700
  BUILD_IN_SOURCE 1
701
  DEPENDS Python pip setuptools cython mpfi sollya six
702
703
704
)


705
706
707
#---pyzmq------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyzmq
708
  URL ${GenURL}/pyzmq-${pyzmq_native_version}.tar.gz
709
  CONFIGURE_COMMAND <VOID>
710
711
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
712
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
713
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
pmendez's avatar
pmendez committed
714
  BUILD_IN_SOURCE 1
715
  DEPENDS Python setuptools zeromq cython
pmendez's avatar
pmendez committed
716
)
717

Ivan Razumov's avatar
Ivan Razumov committed
718
719
720
721
722
723
724
725
726
727
728
729
730
#---tzlocal---------------------------------------------------------------------
LCGPackage_Add(
  tzlocal
  URL ${GenURL}/tzlocal-${tzlocal_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools pytz
)

Ivan Razumov's avatar
Ivan Razumov committed
731
LCGPackage_set_home(pyanalysis)
732

733
734
735
736
737
738
739
#---joblib---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  joblib
  URL ${GenURL}/joblib-${joblib_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
740
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
741
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
742
743
744
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
745
746
747
#---Tempita---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  tempita
Patricia Mendez Lorenzo's avatar
Patricia Mendez Lorenzo committed
748
  URL ${GenURL}/Tempita-${tempita_native_version}.tar.gz
749
750
751
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
752
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
753
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
754
755
756
757
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

758
759
760
761
762
763
764
765
#---pyserial---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyserial
  URL ${GenURL}/pyserial-${pyserial_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
766
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
767
768
769
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
770
771

#---bcrypt-----------------------------------------------------------------------------------------------------------
772
LCGPackage_Add(
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
  bcrypt
  URL ${GenURL}/bcrypt-${bcrypt_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools six cffi
)

#---pyasn1-----------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyasn1
  URL ${GenURL}/pyasn1-${pyasn1_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---pynacl-----------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pynacl
  URL ${GenURL}/PyNaCl-${pynacl_native_version}.tar.gz
801
802
803
804
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
805
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
806
  BUILD_IN_SOURCE 1
807
  DEPENDS Python setuptools six cffi pycparser
808
)
809

810
811
812
813
814
815
816
817
#---python_vxi11---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  python_vxi11
  URL ${GenURL}/python-vxi11-${python_vxi11_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
818
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
819
820
821
822
823
824
825
826
827
828
829
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
#---PyVISA---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyvisa
  URL ${GenURL}/PyVISA-${pyvisa_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
830
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
831
832
833
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
834

SFT Nightlies's avatar
SFT Nightlies committed
835
836
837
838
839
840
841
842
#---mpmath---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  mpmath
  URL ${GenURL}/mpmath-${mpmath_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
843
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
SFT Nightlies's avatar
SFT Nightlies committed
844
845
846
847
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

848
849
850
851
852
853
854
855
#---redis---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  redis
  URL ${GenURL}/redis-${redis_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
856
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
857
858
859
860
861
862
863
864
865
866
867
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
#---pymongo---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pymongo
  URL ${GenURL}/pymongo-${pymongo_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
868
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
869
870
871
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
872

873
874
875
876
877
878
879
#---decorator------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  decorator
  URL ${GenURL}/decorator-${decorator_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
880
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
881
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
882
883
884
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
885
886
887
#---networkx------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  networkx
888
  URL ${GenURL}/networkx-${networkx_native_version}.zip
889
890
891
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
892
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
893
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
894
  BUILD_IN_SOURCE 1
895
  DEPENDS Python setuptools decorator
896
897
898
899
900
901
902
903
)
#---CouchDB------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  CouchDB
  URL ${GenURL}/CouchDB-${CouchDB_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
904
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
905
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
906
  BUILD_IN_SOURCE 1
907
  DEPENDS Python setuptools
908
)
909
910
911
912
913
914
915
916
#---chardet------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  chardet
  URL ${GenURL}/chardet-${chardet_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
917
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
918
919
920
921
922
923
924
925
926
927
928
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
#---idna------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  idna
  URL ${GenURL}/idna-${idna_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
929
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
930
  BUILD_IN_SOURCE 1
931
  REVISION 1
932
933
  DEPENDS Python setuptools
)
934

935
936
937
938
939
940
941
942
#---urllib3------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  urllib3
  URL ${GenURL}/urllib3-${urllib3_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
943
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
944
945
946
947
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

948
949
950
951
952
953
954
#---requests------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  requests
  URL ${GenURL}/requests-${requests_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
955
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
956
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
957
  BUILD_IN_SOURCE 1
958
  DEPENDS Python setuptools 
Ivan Razumov's avatar
Ivan Razumov committed
959
    IF <VERSION> VERSION_GREATER 2.18.0 THEN chardet idna urllib3 certifi ENDIF
960
961
)

Patricia Mendez Lorenzo's avatar
Patricia Mendez Lorenzo committed
962
963
964
965
966
967
968
##---pyapigitlab------------------------------------------------------------------------------------------------------
#LCGPackage_Add(
#  pyapigitlab
#  URL ${GenURL}/pyapi-gitlab-${pyapigitlab_native_version}.tar.gz
#  CONFIGURE_COMMAND <VOID>
#  BUILD_COMMAND <VOID>
#  INSTALL_COMMAND ${MakeSitePackagesDir}
969
#          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
Patricia Mendez Lorenzo's avatar
Patricia Mendez Lorenzo committed
970
971
972
#  BUILD_IN_SOURCE 1
#  DEPENDS Python setuptools requests
#)
973

974
975
976
#---dill-------------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  dill
977
  URL ${GenURL}/dill-${dill_native_version}.tar.gz
978
979
980
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
981
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
982
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
983
984
985
986
987
988
989
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---pox-------------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pox
990
  URL ${GenURL}/pox-${pox_native_version}.tar.gz
991
992
993
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
994
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
995
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
996
997
998
999
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

1000
#---shapely-------------------------------------------------------------------------------------------------------------