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

What does it mean by "Is there modules come from other Python version(i.e. Python 2) or extension? [y/n]"? #12

Closed
lilydjwg opened this issue Nov 7, 2015 · 4 comments

Comments

@lilydjwg
Copy link
Contributor

lilydjwg commented Nov 7, 2015

不太明白它要表达的是什么意思。假设正确语法的句子是:

Do these modules come from other Python versions (i.e. Python 2) or extensions? [y/n]

那么,如果有一部分来自 Python 2,我要如何作答呢?

也不太清楚这里的 extension 是指的什么?是 C extension 吗?

如果直接回车,会当作「n」,因此提示 [y/N] 是不是更好一些?

@damnever
Copy link
Owner

damnever commented Nov 8, 2015

😢 原来[y/n]也是有讲究的。

我一开始是假设所有的依赖都是能在本地环境找到的,没有找到的可能是其它 Python 版本的模块或者是没有安装。
不知道下面这样是不是更容易理解些:

The following modules has not found yet (some of them not in the local environment, some of them may come from other Python version):
    ...
    ...
Would you like to check those moudles on the PYPI? [y/N]
...
Following modules not found:
   ...
   ...
Maybe those modules come from other Python version (i.e Python 2), or you need update database.

@lilydjwg
Copy link
Contributor Author

lilydjwg commented Nov 8, 2015

也就是询问要不要在 PyPI 上找没有找到的模块们了?回答只能是全是或者全否?

我觉得这样问更清楚一些:

These modules aren't found. Some of them may come from other Python versions.
    ...
Try to search PyPI for the missing modules? [y/N]

database 是什么呢?

@damnever
Copy link
Owner

damnever commented Nov 8, 2015

database 保存了 pypi 上面大部分安装包名和导入名的映射,比如安装 MySQL_Python,导入的就是 MySQLdb。说大部分是因为有些是命令行工具,有些包不标准,没有 top_level.txt(保存的就是那包最顶层可以导入的模块名),不好分析直接忽略了

而查询 pypi 是用的安装包名

@lilydjwg
Copy link
Contributor Author

lilydjwg commented Nov 8, 2015

哦哦~

@lilydjwg lilydjwg closed this as completed Nov 8, 2015
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

No branches or pull requests

2 participants