339 Commits

Author SHA1 Message Date
ferdymercury
42d2fb1493 Remove references to Python2
copy-pasted from pitkajuh. See https://github.com/root-project/cling/pull/519
2024-07-26 09:59:04 +02:00
Olivier Couet
7a987c29f6 Remove all the references to "drupal". (#14273)
* Remove all the references to "drupal".

* Apply ferdymercury changes. Thanks !
2023-12-20 09:29:05 +01:00
Stephan Lachnit
798c565978 Remove usage of --src-root with llvm-config 2023-08-02 10:59:04 +02:00
saisoma123
4c32554d73 Fixed some line break issues 2022-09-26 19:44:03 +02:00
saisoma123
e302c39be6 More splitting lines for getting rid of E501 error 2022-09-26 19:44:03 +02:00
saisoma123
94d8408264 Added checks if both normal and build tags 2022-08-13 19:59:04 +02:00
saisoma123
03ec045b69 Renamed packaging variables 2022-08-13 19:59:04 +02:00
saisoma123
8f55fb4e49 Added old names since change was made in another pull request 2022-08-13 19:59:04 +02:00
saisoma123
c31a7bfdd3 Added a build option for last-stable and current-dev. I added this option because it was listed as an improvement that could be made to the CPT on the meta issue list. These options are nice to have because sometimes the user might just want to build Cling and not package it, for fast testing and usage. 2022-08-13 19:59:04 +02:00
saisoma123
1495b97174 Split long lines to get rid of E501 error 2022-08-04 16:29:04 +02:00
saisoma123
047162c130 Used wget function to replace 3 subprocess calls and fixed up download_llvm_binary function. 2022-08-03 09:14:07 +02:00
Surya Somayyajula
094c81e288 Removed 2 globals and implemented them with parameter passing [skip-ci] (#11058)
Implemented CPT_SRC_DIR and REVISION with parameter passing
2022-07-30 07:59:06 +02:00
saisoma123
0b684e39da Got rid of build option, will develop later 2022-07-28 16:44:04 +02:00
saisoma123
50447f7987 Added option for number of cores used during make operation 2022-07-28 16:44:04 +02:00
saisoma123
4853af7820 Added indentation and spacing as well as fixing variable references 2022-07-28 16:44:04 +02:00
saisoma123
f513f1cb8a Added code to check if both tag and tab_build options are used. I also changed the xor to or now. 2022-07-28 16:44:04 +02:00
saisoma123
11d4f27364 Squashed previous commits as other changes were not intended for this branch. This commit adds build options for the platform tags. 2022-07-28 16:44:04 +02:00
saisoma123
e4f0fba78f Replaced workdir with srcdir in extract_tar calls in download_llvm_binary function 2022-07-28 16:44:04 +02:00
saisoma123
f1f0fc1e24 Created new extract_tar function to extract tar files. Replaced tar subprocess calls with new function call and also replaced pythonic tar extractions with new function call. 2022-07-28 16:44:04 +02:00
saisoma123
6f44b45ad3 Added extra spacing between functions to get rid of E302 error code. This is necessary for getting the code to be flake8 compliant. 2022-07-18 12:44:05 +02:00
Surya Somayyajula
b1ef074c09 Added skip-cleanup flags for check-requirements and create-dev-env [skip-ci] (#10960)
Added skip-cleanup flags for create-dev-env.
This would instruct the cpt to build cling, clang, and llvm, without
deleting the build area, as the cpt normally would delete the build
area due to the use of memory running out when linking, because
of too many build subprocesses.
2022-07-17 13:14:03 +02:00
saisoma123
1890a4f39f Added indentation for visual indent. Makes the code more flake8 compliant. 2022-07-17 08:59:06 +02:00
saisoma123
0a8571da4e Fixed invalid escape characters. This makes the code more flake8 compliant. 2022-07-17 08:59:06 +02:00
saisoma123
afc77bf839 Added extra whitespace around operators. This will make code more flake8 compliant. 2022-07-17 08:59:06 +02:00
saisoma123
3feec559a9 Added new dependent arguments, specifically llvm_tar and llvm_binary as well as llvm_tar and llvm_url. I added these dependent arguments because they were listed as a rewrite step for the argument parser in the meta-issue list. Also, it wouldn't make sense to download both the LLVM binary and tar. I also added the tar and url dependency because there was a binary and url dependency. 2022-07-16 18:59:03 +02:00
Surya Somayyajula
39738dc98f Fixed argument nomenclature [skip-ci] (#10936) 2022-07-15 11:59:07 +02:00
saisoma123
a1a8a9d149 Fixed formatting and made new helper function for setting llvm_flags 2022-06-28 18:29:04 +02:00
saisoma123
f7fdcf6773 Formatting changes 2022-06-28 18:29:04 +02:00
saisoma123
476a7d13fa Forgot extra plus sign 2022-06-28 18:29:04 +02:00
saisoma123
13013617fe Added verbose flag to the llvm_flags variable, if the verbose option is called 2022-06-28 18:29:04 +02:00
saisoma123
f5402eefab Added verbose flag to the llvm_flags variable 2022-06-28 18:29:04 +02:00
saisoma123
cabadcf6f4 Edited verbose output flag 2022-06-28 18:29:04 +02:00
saisoma123
3bd9d02ab1 Added new starting point for cpt.py.
Added new main block because this was mentioned in the meta issue
list (#406 in cling) as one of the rewrite steps. This also allows for
the main code to be run as opposed to running the main code plus the
function defintions.
2022-06-28 18:29:04 +02:00
saisoma123
1fee0d4b10 This fixes the undefined llvm_flag error when the --last-stable option is called. I added a download_llvm_binary function call, which sets the llvm_flags. 2022-06-15 15:14:02 +02:00
saisoma123
717eea7c47 Added cmakeDir for Windows 2022-06-11 20:44:02 +02:00
Pratyush Das
2acd1d2776 Fix cpt for Cling build using LLVM 9
Only fixes builds from LLVM 9 source. Builds using an LLVM 9 binary
release is still broken.

Drop Ubuntu 16.04 Clang build, since Clang 3.8 is very old and causes
build failure.
2021-03-31 18:59:06 +02:00
Pratyush Das
2b222f35f5 Drop --compiler flag
Build compiler can be set using CMake flag
2021-03-18 23:29:07 +01:00
Pratyush Das
9e2c41e580 Update cpt shebang to reflect Python 3 requirement 2021-03-05 12:44:07 +01:00
Pratyush Das
960127f33a Drop Python 2 support
lit cannot be installed as a standalone package using pip on macOS when
using Python 2.
2021-02-16 22:29:03 +01:00
Pratyush Das
e978660f35 Remove dependence on svn
LLVM repository has migrated from svn to git
2021-02-16 22:29:03 +01:00
Pratyush Das
a2ed863649 Fix cloning a fresh cling
We need the cloned directory to always be named cling
2020-11-02 08:14:08 +01:00
Pratyush Das
cb6178da2b New flag --cling-branch to specify particular cling branch
Motivated by the need to clone the PR branch for CI in Github Actions.
The earlier "branch/branches" tag did not allow binaries to be created.
2020-11-02 08:14:08 +01:00
Axel Naumann
7e6762da4f Remove statement about "policy restrictions" wrt repos (NFC);
addresses https://github.com/root-project/cling/issues/307
2020-09-02 10:29:05 +02:00
Pratyush Das
74b99152db Fix llvm binary tarball requirement
Removed redundant is_llvm_binary_compatible() and fixed zlib prerequisite
2020-06-14 11:59:05 +02:00
Pratyush Das
be615cb351 Move declarations to fix faulty logic
llvm_vers variable required earlier for linux platform initialization
2020-06-10 12:44:04 +02:00
Pratyush Das
f8ccd27e67 Fix tar_required logic
If all requirements were satisfied, tar_required would always be false.
This commit fixes it.
2020-05-13 09:29:07 +02:00
Pratyush Das
87011bd783 Fix cmake requirement 2020-05-13 09:29:07 +02:00
Pratyush Das
98a1c4acad Fix svn installation 2020-05-13 09:29:07 +02:00
Pratyush Das
52f75d8768 Fix distro requirement (and installation of pip)
There might be an issue when using conda as default Python for Python3
because conda calls it pip but otherwise it is pip3.
2020-05-13 09:29:07 +02:00
Pratyush Das
82e662096c Enable tarball-tag flag to build cling using LLVM binary release.
Fixes Cling's nightly releases
2019-12-25 07:29:26 +01:00