CofeehousePy/Makefile

136 lines
3.6 KiB
Makefile
Raw Normal View History

2020-12-25 21:00:04 +01:00
clean_apt:
2020-12-25 20:35:34 +01:00
rm -rf mods/apt/build mods/apt/dist mods/apt/coffeehousemod_apt.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_stopwords:
2020-12-25 20:35:34 +01:00
rm -rf mods/stopwords/build mods/stopwords/dist mods/stopwords/coffeehousemod_stopwords.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_tokenizer:
2020-12-25 20:35:34 +01:00
rm -rf mods/tokenizer/build mods/tokenizer/dist mods/tokenizer/coffeehousemod_tokenizer.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_dltc:
rm -rf dltc/build dltc/dist dltc/coffeehouse_dltc.egg-info
2020-12-25 20:16:54 +01:00
2020-12-25 21:00:04 +01:00
clean_nlpfr:
rm -rf nlpfr/build nlpfr/dist nlpfr/nltk.egg-info
2020-12-25 21:03:32 +01:00
clean_alg:
2020-12-25 21:34:45 +01:00
rm -rf alg/build alg/dist alg/coffeehouse_alg.egg-info
2020-12-25 21:03:32 +01:00
2020-12-26 23:41:16 +01:00
clean_rf:
rm -rf resource_fetch/build resource_fetch/dist resource_fetch/resource_fetch.egg-info
2020-12-25 21:14:57 +01:00
clean_his:
rm -rf hyper_internal_service/build hyper_internal_service/dist hyper_internal_service/hyper_internal_service.egg-info
2020-12-27 22:58:57 +01:00
clean_langdetect:
rm -rf services/language_detection/build services/language_detection/dist services/language_detection/coffeehouse_languagedetection.egg-info
2020-12-25 21:00:04 +01:00
clean:
make clean_apt clean_stopwords clean_tokenizer clean_nlpfr
make clean_dltc
2020-12-25 21:14:57 +01:00
make clean_his
2020-12-25 21:03:32 +01:00
make clean_alg
2020-12-26 23:41:16 +01:00
make clean_rf
2020-12-27 22:58:57 +01:00
make clean_langdetect
2020-12-25 21:00:04 +01:00
# ======================================================================================================================
build_apt:
2020-12-26 23:41:16 +01:00
cd mods/apt; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_stopwords:
2020-12-26 23:41:16 +01:00
cd mods/stopwords; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_tokenizer:
2020-12-26 23:41:16 +01:00
cd mods/tokenizer; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_mods:
make build_apt build_stopwords build_tokenizer
build_nlpfr:
make build_mods
2020-12-26 23:41:16 +01:00
cd nlpfr; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:00:04 +01:00
build_dltc:
2020-12-26 23:41:16 +01:00
cd dltc; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:16:54 +01:00
2020-12-25 21:03:32 +01:00
build_alg:
2020-12-26 23:41:16 +01:00
cd alg; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:14:57 +01:00
build_his:
2020-12-26 23:41:16 +01:00
cd hyper_internal_service; python3 setup.py build; python3 setup.py sdist
build_rf:
cd resource_fetch; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:03:32 +01:00
2020-12-27 22:58:57 +01:00
build_langdetect:
cd services/language_detection; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:00:04 +01:00
build:
make build_nlpfr
2020-12-25 21:14:57 +01:00
make build_his
2020-12-25 21:00:04 +01:00
make build_dltc
2020-12-25 21:03:32 +01:00
make build_alg
2020-12-26 23:41:16 +01:00
make build_rf
2020-12-27 22:58:57 +01:00
make build_langdetect
2020-12-25 21:00:04 +01:00
# ======================================================================================================================
install_apt:
2020-12-26 23:41:16 +01:00
cd mods/apt; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_stopwords:
2020-12-26 23:41:16 +01:00
cd mods/stopwords; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_tokenizer:
2020-12-26 23:41:16 +01:00
cd mods/tokenizer; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_mods:
make install_apt install_stopwords install_tokenizer
install_nlpfr:
make install_mods
2020-12-26 23:41:16 +01:00
cd nlpfr; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_dltc:
2020-12-26 23:41:16 +01:00
cd dltc; python3 setup.py install
2020-12-25 21:00:04 +01:00
2020-12-25 21:03:32 +01:00
install_alg:
2020-12-26 23:41:16 +01:00
cd alg; python3 setup.py install
2020-12-25 21:03:32 +01:00
2020-12-25 21:14:57 +01:00
install_his:
2020-12-26 23:41:16 +01:00
cd hyper_internal_service; python3 -m pip install -Ur dev_requirements.txt; python3 setup.py install
install_rf:
cd resource_fetch; python3 setup.py install
2020-12-27 22:58:57 +01:00
python3 -m resource_fetch
install_langdetect:
cd services/language_detection; python3 setup.py install
2020-12-25 21:14:57 +01:00
2020-12-25 21:00:04 +01:00
install:
2020-12-26 23:41:16 +01:00
make install_rf
2020-12-25 21:03:32 +01:00
make install_nlpfr
2020-12-25 21:14:57 +01:00
make install_his
2020-12-25 21:03:32 +01:00
make install_dltc
make install_alg
2020-12-27 22:58:57 +01:00
make install_langdetect
2020-12-25 21:14:57 +01:00
# ======================================================================================================================
2020-12-25 21:34:45 +01:00
system_prep_python:
2020-12-26 23:41:16 +01:00
apt -y install python3 python3-distutils python3-dev python3-setuptools
2020-12-25 21:34:45 +01:00
2020-12-25 21:14:57 +01:00
system_prep_pip:
2020-12-26 02:47:36 +01:00
apt -y install wget curl
2020-12-25 21:14:57 +01:00
wget https://bootstrap.pypa.io/get-pip.py
2020-12-26 23:41:16 +01:00
python3 get-pip.py
2020-12-25 21:14:57 +01:00
rm get-pip.py
system_prep_gcc:
2020-12-27 23:06:07 +01:00
apt -y install gcc build-essential
# ======================================================================================================================
start_langdetect:
python3 -m coffeehouse_languagedetection --start-server