我的软件包依赖于numpy和statsmodel,我将它们列在// main-page.js
var Observable = require("data/observable").Observable;
var pageData = new Observable({
pokemon: ["Bulbasaur", "Charmander", "Squirtle"]
});
exports.pageLoaded = function(args) {
var page = args.object;
page.bindingContext = pageData;
page.getViewById("pokemonPicker").addEventListener(
Observable.propertyChangeEvent, function(e) {
if (e.propertyName == "selectedIndex") {
console.log("You selected: " + pageData.pokemon[e.value]);
}
}
);
};
下的setup.py脚本中:
install_requires
)
但每当我运行SETUP_REQUIRES = [
'numpy',
]
INSTALL_REQUIRES = [
'numpy',
'statsmodels>=0.5.0',
]
setup(name=DISTNAME,
author=AUTHOR,
author_email=EMAIL,
version=VERSION,
packages=PACKAGES,
package_data=PACKAGE_DATA,
include_package_data=INCLUDE_PACKAGE_DATA,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
classifiers=CLASSIFIERS,
setup_requires=SETUP_REQUIRES,
install_requires=INSTALL_REQUIRES,
scripts = SCRIPTS,
时,它都无法安装statsmodels,因为它说它需要numpy。
pip install mypackage
有没有办法让它先安装numpy?或者检查包间依赖性?