Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update manylinux2014 #8

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,14 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif
echo ". /root/miniforge3/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc && \
. /root/miniforge3/etc/profile.d/conda.sh && conda activate base && python3 -m pip install --upgrade pip
RUN conda create -y -n py35 python=3.5
RUN conda create -y -n py36 python=3.6
RUN conda create -y -n py37 python=3.7
RUN conda create -y -n py38 python=3.8
RUN conda create -y -n py39 python=3.9
RUN conda create -y -n py310 python=3.10
RUN conda create -y -n py311 python=3.11
RUN conda init bash

RUN yum update -y && yum install -y epel-release cmake3 && \
yum remove -y cmake && \
ln -s /usr/bin/cmake3 /usr/bin/cmake && \
cmake --version && \
rm -rf /var/cache/yum && \
cd /tmp && \
wget https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2.tar.gz && \
wget https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4.tar.gz && \
tar xvzf cmake*.tar.gz && cd cmake* && \
mkdir -p build && cd build && \
cmake .. && make -j4 && make install && \
Expand All @@ -52,6 +44,13 @@ RUN yum update -y && yum install -y epel-release cmake3 && \

RUN yum update -y && yum install -y SDL2-devel && rm -rf /var/cache/yum

RUN conda create -y -n py38 python=3.8
RUN conda create -y -n py39 python=3.9
RUN conda create -y -n py310 python=3.10
RUN conda create -y -n py311 python=3.11
RUN conda create -y -n py312 python=3.12
RUN conda init bash

ADD entry.sh /bin/entry.sh
ENTRYPOINT ["/bin/entry.sh"]
ADD _vimrc /root/.vimrc
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all:
@echo nothing special

DOCKER_TAG_LINUX := ghcr.io/cubao/build-env-manylinux2014-x64:v0.0.4
DOCKER_TAG_LINUX := ghcr.io/cubao/build-env-manylinux2014-x64:v0.0.5
docker_build_linux:
docker build -t $(DOCKER_TAG_LINUX) -f Dockerfile.linux .
docker images dockcross/manylinux2014-x64 --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
Expand Down
23 changes: 23 additions & 0 deletions _vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,26 @@ set nobackup
set nowritebackup
set noswapfile
set linespace=3
language messages en_US.utf-8

vnoremap <silent> * :call VisualSelection('f')<CR>
vnoremap <silent> # :call VisualSelection('b')<CR>
vnoremap <silent> gv :call VisualSelection('gv')<CR>
vnoremap <silent> r :call VisualSelection('replace')<CR>
function! VisualSelection(direction) range
let l:saved_reg = @"
execute "normal! vgvy"
let l:pattern = escape(@", '\\/.*$^~[]')
let l:pattern = substitute(l:pattern, "\n$", "", "")
if a:direction == 'b'
execute "normal ?" . l:pattern . "^M"
elseif a:direction == 'gv'
call CmdLine("vimgrep " . '/'. l:pattern . '/' . ' **/*.')
elseif a:direction == 'replace'
call CmdLine("%s" . '/'. l:pattern . '/')
elseif a:direction == 'f'
execute "normal /" . l:pattern . "^M"
endif
let @/ = l:pattern
let @" = l:saved_reg
endfunction