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

增加了自动配置环境的shell脚本 #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

增加了自动配置环境的shell脚本 #4

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 1, 2016

脚本文件:bin/setupenv4ubuntu.sh

执行:
cd bin
sh setupenv4ubuntu.sh

@programthink
Copy link
Owner

@yohn89
今晚处理了一堆 issue,刚看到你的 pull request
首先,非常感谢对俺项目的支持 :)

俺支持用脚本配置依赖的软件,能方便技术菜鸟。
但是,
如果按照你现有的方式,就得为每一个主流的 Linux 发行版分别写一个 sh 脚本。

应该有办法写一个通用的 setup.sh
然后在脚本内部判断当前系统的类型,再分别运行不同的“包管理程序”。

你觉得呢?

@ghost
Copy link
Author

ghost commented Mar 3, 2016

同意。可以这样,对不同的平台有不同的配置文件,比如:setupenv4xxx.sh 另外有一个总的setup.sh,运行setup.sh的时候判断当前平台,然后调用对应的脚本

@@ -0,0 +1 @@
pyyaml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the requirements.txt is good and pretty standard for all python projects;

the dependency of graphviz you can't make a script for each distro, but document it for a few major Linux distros in README should be fine? like

$ sudo apt install -y graphviz         # for Ubuntu 16+; apt-get also works
$ sudo dnf install -y graphivz         # for Fedora 24+
$ sudo pacman -S graphviz              # for ArchLinux
[...]

@ruanjiayou
Copy link

author进去喝茶了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants