-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
65 lines (50 loc) · 1.46 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.ONESHELL:
SHELL=/bin/bash
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate
test:
$(CONDA_ACTIVATE) ./env
echo $$(which python)
run_py:
$(CONDA_ACTIVATE) ./env
python Model_Test-Tensorflow_1.py
# Tut from: https://blog.ianpreston.ca/conda/python/bash/2020/05/13/conda_envs.html
# Interesting things: https://stackoverflow.com/questions/24736146/how-to-use-virtualenv-in-makefile
# # Choose OS setup
# # Run scripts for requirements
# # Setup
# # Run tensorboard
# # Either dev or local
# # .PHONY: all
# # all: ; @echo "Hos world"
# test:
# @echo "Hos world"
# 0:
# # source ~/miniforge3/bin/activate
# conda activate ./env
# 1:
# @echo "1"
# eval "$(conda shell.bash hook)"
# conda activate ./env
# 2:
# # @echo "2"
# # exec bash conda activate ./env
# source ~/miniforge3/etc/profile.d/conda.sh
# conda activate /Users/james.wolfaardt/code/__ben/Code/Deep_Learning-EEG_Data/env
# # conda activate ./env
# 3:
# @echo "3"
# # conda init "$$SHELL"
# source /usr/local/opt/miniconda3/bin/activate .env/
# # /Users/james.wolfaardt/code/__ben/Code/Deep_Learning-EEG_Data/env
# 4:
# @echo "4"
# bash -c "conda activate ./env"
# # source ~/miniforge3/bin/activate ./env
# # conda activate ./env
# libraries: conda
# @echo "Configuring environment"
# conda activate ./env
# # $(shell ./setup/configure_env.sh)
# conda:
# @echo "Initialising and configuring Conda environment"
# $(shell ./setup/configure_env.sh)