CMakeLists.txt 175 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

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

Pere Mato Vila's avatar
Pere Mato Vila committed
8
9
#---Sometimes you need to use the Python insalled as Framework----------------------------------------------------
if (APPLE)
Pere Mato Vila's avatar
Pere Mato Vila committed
10
  set (python_fwk_command ${Python_cmd})
Pere Mato Vila's avatar
Pere Mato Vila committed
11
else()
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
14
endif()

15
16
set(PySetupOptions --root=/ --prefix=<INSTALL_DIR>)

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

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

35
36
37
38
39
40
41
42
#---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}
43
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
44
45
46
47
48
49
50
51
52
53
54
55
  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}
56
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
57
58
59
60
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

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

74
75
76
77
78
79
80
81
82
83
84
85
86
#---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
)

87
88
89
90
91
92
93
94
95
96
97
98
# 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
# )
99

100
101
102
103
104
105
106
107
108
109
110
111
112
#---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
)

113
114
115
#---lxml---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  lxml
116
  URL ${GenURL}/lxml-${lxml_native_version}.tar.gz
117
  CONFIGURE_COMMAND <VOID>
118
119
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
120
          COMMAND ${PYTHON} setup.py build_ext -i --with-cython 
121
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
122
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
123
  BUILD_IN_SOURCE 1
124
  DEPENDS Python setuptools libxml2 libxslt cython
125
)
126

127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#---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
)

#---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
)

154
155
156
157
158
159
160
161
162
163
164
165
166
#---astunparse-----------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  astunparse
  URL ${GenURL}/astunparse-${astunparse_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
)

167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#---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
)

#---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
)

#---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
)

206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
#---sortedcontainers------------------------------------------------------------
LCGPackage_Add(
  sortedcontainers
  URL ${GenURL}/sortedcontainers-${sortedcontainers_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
)

#---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
)

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
#---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
)

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
#---funcsigs---------------------------------------------------------------------------------------------------
LCGPackage_Add(
  funcsigs
  URL ${GenURL}/funcsigs-${funcsigs_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
)

#---pbr---------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pbr
  URL ${GenURL}/pbr-${pbr_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
)

323
324
325
#---mock------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  mock
326
  URL ${GenURL}/mock-<VERSION>.tar.gz
327
328
329
330
331
332
333
  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
334
  IF <VERSION> VERSION_GREATER_EQUAL 2 THEN
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
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
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
    funcsigs pbr
  ENDIF
)

#---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
)

#---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
)

#---backports_abc-----------------------------------------------------------------------------------------------
LCGPackage_Add(
  backports_abc
  URL ${GenURL}/backports_abc-${backports_abc_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
)

#---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
)

#---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
)

#---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
)

#---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}
464
          COMMAND ${CMAKE_COMMAND} -Durl=${GenURL}/jquery-ui-1.12.1.zip
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
                                   -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
)

#---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
485
  DEPENDS Python setuptools numpy
486
487
488
489
490
491
492
493
494
495
496
497
498
499
)

#---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
)
500

501
502
503
504
505
506
507
508
509
510
#---plotly-----------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  plotly
  URL ${GenURL}/plotly.py-${plotly_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR>/packages/python/plotly/ ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
  BUILD_IN_SOURCE 1
Ivan Razumov's avatar
Ivan Razumov committed
511
  DEPENDS Python six retrying matplotlib
512
)
513

514
#---catboost---------------------------------------------------------------------------------------------------------
515
if (Python_native_version VERSION_LESS 3)
Rafał Pachołek's avatar
Rafał Pachołek committed
516
517
518
519
    set(pyver 2)
else()
    set(pyver 3)
endif()
520
521
522
523
LCGPackage_Add(
  catboost
  URL ${GenURL}/catboost-${catboost_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
524
  ENVIRONMENT YA_CACHE_DIR=/tmp/$ENV{USER}/.cache 
Dmitri Konstantinov's avatar
Dmitri Konstantinov committed
525
526
527
528
529
530
  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 
531
532
533
          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}
534
  BUILD_IN_SOURCE 1
535
  DEPENDS Python flatbuffers numpy graphviz pandas matplotlib scipy plotly six
536
  REVISION 2
537
)
538

539
#---sqlalchemy---------------------------------------------------------------------------------------------------
540
541
LCGPackage_Add(
  sqlalchemy
542
  URL ${GenURL}/SQLAlchemy-${sqlalchemy_native_version}.tar.gz
543
  CONFIGURE_COMMAND <VOID>
544
545
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
546
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
547
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
548
  BUILD_IN_SOURCE 1
549
  DEPENDS Python setuptools
550
551
552
553
554
)

#---genshi------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  genshi
555
  URL ${GenURL}/Genshi-${genshi_native_version}.tar.gz
556
  CONFIGURE_COMMAND <VOID>
557
  BUILD_COMMAND <VOID>
Javier Cervantes's avatar
Javier Cervantes committed
558
  INSTALL_COMMAND ${MakeSitePackagesDir}
559
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
560
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
561
  BUILD_IN_SOURCE 1
Ivan Razumov's avatar
Ivan Razumov committed
562
  DEPENDS Python setuptools
563
)
564
565
566
#---prctl------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  prctl
567
  URL ${GenURL}/python-prctl-${prctl_native_version}.tar.gz
568
569
570
571
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
572
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
573
574
575
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
576
577
578
579

#---4suite------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  4suite
580
  URL ${GenURL}/4Suite-XML-${4suite_native_version}.tar.gz
581
  CONFIGURE_COMMAND <VOID>
582
  BUILD_COMMAND <VOID>
583
584
585
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
586
587
588
589
  BUILD_IN_SOURCE 1
  DEPENDS Python
)

590
591
#---accsoft-nxcals-data-access-python---------------------------------------------------------------------------
LCGPackage_Add(
592
593
   accsoft_nxcals_data_access_python
   URL ${GenURL}/accsoft-nxcals-data-access-python-${accsoft_nxcals_data_access_python_native_version}.tar.gz
594
595
   CONFIGURE_COMMAND <VOID>
   BUILD_COMMAND <VOID>
Rafał Pachołek's avatar
Rafał Pachołek committed
596
   ENVIRONMENT nxcals_version=${nxcals_data_access_native_version}
597
   INSTALL_COMMAND ${MakeSitePackagesDir}
598
599
        COMMAND ${PYTHON} setup.py install ${PySetupOptions}
        COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR> 
600
   BUILD_IN_SOURCE 1
601
   DEPENDS Python setuptools nxcals_data_access
602
603
604
)


605
#---cx_oracle------------------------------------------------------------------------------------------------------
606
607
LCGPackage_Add(
  cx_oracle
608
  URL ${GenURL}/cx_Oracle-${cx_oracle_native_version}.tar.gz
609
  CONFIGURE_COMMAND <VOID>
610
611
612
  BUILD_COMMAND <VOID>
  ENVIRONMENT ORACLE_HOME=${oracle_home}
  INSTALL_COMMAND ${MakeSitePackagesDir}
613
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
614
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
615
  BUILD_IN_SOURCE 1
616
  DEPENDS Python setuptools oracle
617
)
618

619
#---simplejson------------------------------------------------------------------------------------------------------
620
LCGPackage_Add(
621
622
  simplejson
  URL ${GenURL}/simplejson-${simplejson_native_version}.tar.gz
623
  CONFIGURE_COMMAND <VOID>
624
625
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
626
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
627
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
628
  BUILD_IN_SOURCE 1
629
  DEPENDS Python setuptools
630
631
632
633
634
)

#---multiprocessing------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  multiprocessing
635
  URL ${GenURL}/multiprocessing-${multiprocessing_native_version}.tar.gz
636
  CONFIGURE_COMMAND <VOID>
637
  BUILD_COMMAND <VOID>
638
639
640
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
641
  BUILD_IN_SOURCE 1
642
  DEPENDS Python setuptools
643
644
)

Richard Bachmann's avatar
Richard Bachmann committed
645
#---mysql_connector_python-----------------------------------------------------------------------------------------------
646
LCGPackage_Add(
Richard Bachmann's avatar
Richard Bachmann committed
647
648
  mysql_connector_python
  URL ${GenURL}/mysql-connector-python-${mysql_connector_python_native_version}.tar.gz
649
650
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
651
652
653
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
654
  BUILD_IN_SOURCE 1
655
  DEPENDS Python setuptools mysql protobuf
pmendez's avatar
pmendez committed
656
657
)

658
659
660
661
662
663
664
665
666
667
668
669
670
#---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
)

671
#---pythonsollya---------------------------------------------------------------------------------------
Ivan Razumov's avatar
Ivan Razumov committed
672
673
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)
674
675
676
677
LCGPackage_Add(
  pythonsollya
  URL ${GenURL}/pythonsollya-${pythonsollya_native_version}.tgz
  CONFIGURE_COMMAND <VOID>
678
  BUILD_COMMAND ${MAKE} PREFIX=<INSTALL_DIR> SOLLYA_DIR=${sollya_home}
679
                MPFI_DIR=${mpfi_home} MPFR_DIR=${mpfr_home} IF NOT ${gmp_home} STREQUAL TakenFromSystem THEN GMP_DIR=${gmp_home} ENDIF
680
681
682
                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}
683
  BUILD_IN_SOURCE 1
684
  DEPENDS Python pip setuptools cython mpfi sollya six
685
686
687
)


688
689
690
#---pyzmq------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pyzmq
691
  URL ${GenURL}/pyzmq-${pyzmq_native_version}.tar.gz
692
  CONFIGURE_COMMAND <VOID>
693
694
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
695
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
696
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
pmendez's avatar
pmendez committed
697
  BUILD_IN_SOURCE 1
698
  DEPENDS Python setuptools zeromq cython
pmendez's avatar
pmendez committed
699
)
700

Ivan Razumov's avatar
Ivan Razumov committed
701
702
703
704
705
706
707
708
709
710
711
712
713
#---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
714
LCGPackage_set_home(pyanalysis)
715

716
717
718
719
720
721
722
#---joblib---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  joblib
  URL ${GenURL}/joblib-${joblib_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
723
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
724
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
725
726
727
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
728
729
730
#---Tempita---------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  tempita
Patricia Mendez Lorenzo's avatar
Patricia Mendez Lorenzo committed
731
  URL ${GenURL}/Tempita-${tempita_native_version}.tar.gz
732
733
734
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
735
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
736
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
737
738
739
740
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

741
742
743
744
745
746
747
748
#---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}
749
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
750
751
752
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
753
754

#---bcrypt-----------------------------------------------------------------------------------------------------------
755
LCGPackage_Add(
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
  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
784
785
786
787
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
788
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
789
  BUILD_IN_SOURCE 1
790
  DEPENDS Python setuptools six cffi pycparser
791
)
792

793
794
795
796
797
798
799
800
#---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}
801
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
802
803
804
805
806
807
808
809
810
811
812
  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}
813
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
814
815
816
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
817

SFT Nightlies's avatar
SFT Nightlies committed
818
819
820
821
822
823
824
825
#---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}
826
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
SFT Nightlies's avatar
SFT Nightlies committed
827
828
829
830
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

831
832
833
834
835
836
837
838
#---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}
839
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
840
841
842
843
844
845
846
847
848
849
850
  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}
851
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
852
853
854
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
855

856
857
858
859
860
861
862
#---decorator------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  decorator
  URL ${GenURL}/decorator-${decorator_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
863
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
864
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
865
866
867
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)
868
869
870
#---networkx------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  networkx
871
  URL ${GenURL}/networkx-${networkx_native_version}.zip
872
873
874
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
875
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
876
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
877
  BUILD_IN_SOURCE 1
878
  DEPENDS Python setuptools decorator
879
880
881
882
883
884
885
886
)
#---CouchDB------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  CouchDB
  URL ${GenURL}/CouchDB-${CouchDB_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
887
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
888
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
889
  BUILD_IN_SOURCE 1
890
  DEPENDS Python setuptools
891
)
892
893
894
895
896
897
898
899
#---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}
900
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
901
902
903
904
905
906
907
908
909
910
911
  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}
912
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
913
  BUILD_IN_SOURCE 1
914
  REVISION 1
915
916
  DEPENDS Python setuptools
)
917

918
919
920
921
922
923
924
925
#---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}
926
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
927
928
929
930
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

931
932
933
934
935
936
937
#---requests------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  requests
  URL ${GenURL}/requests-${requests_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
938
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
939
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
940
  BUILD_IN_SOURCE 1
941
  DEPENDS Python setuptools 
Ivan Razumov's avatar
Ivan Razumov committed
942
    IF <VERSION> VERSION_GREATER 2.18.0 THEN chardet idna urllib3 certifi ENDIF
943
944
)

Patricia Mendez Lorenzo's avatar
Patricia Mendez Lorenzo committed
945
946
947
948
949
950
951
##---pyapigitlab------------------------------------------------------------------------------------------------------
#LCGPackage_Add(
#  pyapigitlab
#  URL ${GenURL}/pyapi-gitlab-${pyapigitlab_native_version}.tar.gz
#  CONFIGURE_COMMAND <VOID>
#  BUILD_COMMAND <VOID>
#  INSTALL_COMMAND ${MakeSitePackagesDir}
952
#          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
Patricia Mendez Lorenzo's avatar
Patricia Mendez Lorenzo committed
953
954
955
#  BUILD_IN_SOURCE 1
#  DEPENDS Python setuptools requests
#)
956

957
958
959
#---dill-------------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  dill
960
  URL ${GenURL}/dill-${dill_native_version}.tar.gz
961
962
963
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
964
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
965
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
966
967
968
969
970
971
972
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

#---pox-------------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  pox
973
  URL ${GenURL}/pox-${pox_native_version}.tar.gz
974
975
976
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
977
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
978
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
979
980
981
982
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools
)

983
984
985
986
987
988
989
990
#---shapely-------------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  shapely
  URL ${GenURL}/Shapely-${shapely_native_version}.tar.gz
  CONFIGURE_COMMAND <VOID>
  BUILD_COMMAND <VOID>
  INSTALL_COMMAND ${MakeSitePackagesDir}
          COMMAND ${PYTHON} setup.py install ${PySetupOptions}
991
          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
992
993
994
995
  BUILD_IN_SOURCE 1
  DEPENDS Python setuptools geos cython numpy
)

996
997
998
#---multiprocess------------------------------------------------------------------------------------------------------
LCGPackage_Add(
  multiprocess
999
1000
  IF <NATIVE_VERSION> VERSION_LESS 0.7.10 THEN
    URL ${GenURL}/multiprocess-${multiprocess_native_version}.tar.gz