Skip to content

Commit 2b981c3

Browse files
committed
Updated conda packaging scripts
1 parent cab22d3 commit 2b981c3

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

packaging/Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _BUILD/$(SOURCE_ARCHIVE):
5858
echo "Creating source archive from latest commit $(COMMIT) - $(SOURCE_ARCHIVE)"
5959
echo "############################"
6060
mkdir -p $(build_dir)
61-
git-archive-all --prefix=$(NAME)-$(VERSION)-$(REBUILD)/ _BUILD/$(SOURCE_ARCHIVE)
61+
git-archive-all --prefix=$(NAME)-$(VERSION)/ _BUILD/$(SOURCE_ARCHIVE)
6262

6363
_BUILD/$(SOURCE_ARCHIVE_DEB):
6464
echo "############################"
@@ -123,17 +123,19 @@ deb: _BUILD/$(SOURCE_ARCHIVE_DEB)
123123
# BUILD LOCALLY BINARY PACKAGE
124124
# debuild -us -uc
125125

126-
conda: _BUILD/$(SOURCE_ARCHIVE)
126+
conda:
127127
echo "############################"
128128
echo "Creating conda archive from source file $(SOURCE_ARCHIVE)"
129129
echo "############################"
130130
conda config --add channels conda-forge
131131
conda config --set channel_priority strict
132132
mkdir -p _BUILD/conda
133-
cp _BUILD/$(SOURCE_ARCHIVE) _BUILD/conda/
133+
cd ..
134+
git archive --format=tar.gz --prefix=clang-uml-$(VERSION)/ v$(VERSION) >packaging/_BUILD/conda/clang-uml-$(VERSION).tar.gz
135+
cd packaging
134136
cp conda/meta.yaml.in conda/meta.yaml
135137
$(call subst_conda_meta_yaml,PKG_VERSION,${VERSION},conda)
136-
$(call subst_conda_meta_yaml,PKG_SOURCE,..\/_BUILD\/clang-uml-$(VERSION).tar.$(TAR_EXT),conda)
138+
$(call subst_conda_meta_yaml,PKG_SOURCE,..\/_BUILD\/conda\/clang-uml-$(VERSION).tar.$(TAR_EXT),conda)
137139
$(call subst_conda_meta_yaml,GIT_COMMIT,${COMMIT},conda)
138140
$(call subst_conda_meta_yaml,GIT_BRANCH,${BRANCH},conda)
139-
conda build --user bkryza --token $(CONDA_TOKEN) conda
141+
conda build --user bkryza --token $(CONDA_TOKEN) ./conda

packaging/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ find packaging/_BUILD/fedora
3434
## Anaconda
3535

3636
```bash
37-
docker run --rm -v $PWD:$PWD continuum/miniconda3 bash
38-
conda install conda-build
37+
docker run --rm -v $PWD:$PWD continuumio/miniconda3 bash
38+
conda install conda-build make
3939
cd packaging
40-
make conda
40+
make CONDA_TOKEN=<TOKEN> conda
4141
```

packaging/conda/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export CLANGUML_GIT_TOPLEVEL_DIR=${SRC_DIR}
99
cmake -DCMAKE_BUILD_TYPE=Release \
1010
-DGIT_VERSION=${GIT_VERSION} \
1111
-DCODE_COVERAGE=OFF \
12-
-DWITH_TESTS=ON \
12+
-DBUILD_TESTS=OFF \
13+
-DCMAKE_CXX_FLAGS="-Wno-nonnull -Wno-stringop-overflow" \
1314
-DLLVM_CONFIG_PATH=${BUILD_PREFIX}/bin/llvm-config \
1415
-DCONDA_BUILD_PREFIX=${BUILD_PREFIX} \
1516
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
@@ -18,6 +19,4 @@ cmake -DCMAKE_BUILD_TYPE=Release \
1819

1920
CTEST_OUTPUT_ON_FAILURE=1 make -j${CPU_COUNT}
2021

21-
CTEST_OUTPUT_ON_FAILURE=1 ctest -j${CPU_COUNT}
22-
2322
make install

packaging/conda/meta.yaml.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source:
99
url: "{{PKG_SOURCE}}"
1010

1111
build:
12-
binary_relocation: true
12+
binary_relocation: false
1313
script_env:
1414
- PKG_VERSION
1515
- GIT_VERSION={{PKG_VERSION}}
@@ -23,14 +23,16 @@ requirements:
2323
- {{ compiler('cxx') }}
2424
- conda-forge::pkg-config
2525
- conda-forge::yaml-cpp 0.7.0
26-
- conda-forge::clangdev 14.0.4
27-
- conda-forge::libclang 14.0.4
26+
- conda-forge::clangdev 15.0.6
27+
- conda-forge::libclang 15.0.6
28+
- conda-forge::libclang-cpp 15.0.6
2829
- conda-forge::cmake
2930
- conda-forge::git
3031
- conda-forge::make # [unix]
3132
run:
3233
- conda-forge::yaml-cpp 0.7.0
33-
- conda-forge::libclang 14.0.4
34+
- conda-forge::libclang 15.0.6
35+
- conda-forge::libclang-cpp 15.0.6
3436

3537
test:
3638
commands:

0 commit comments

Comments
 (0)