post-install

Local gulp not found (Try running: npm install gulp)

白昼怎懂夜的黑 提交于 2019-12-03 04:00:38
问题 I created a module ( webapp-module-storage ) which has the following definitions: package.json { "dependencies": { ... }, "devDependencies": { "gulp": "^3.9.1", ... }, "name": "webapp-module-storage", "scripts": { "postinstall": "gulp build", "test": "gulp test" } } I thought I can use my module inside another module when installing it with: npm install github:myorg/webapp-module-storage#master However, when I install my module, I am getting this error: Local gulp not found Try running: npm

Execute a Python script post install using distutils / setuptools

女生的网名这么多〃 提交于 2019-11-26 22:10:56
I'm trying to add a post-install task to Python distutils as described in How to extend distutils with a simple post install script? . The task is supposed to execute a Python script in the installed lib directory . This script generates additional Python modules the installed package requires. My first attempt is as follows: from distutils.core import setup from distutils.command.install import install class post_install(install): def run(self): install.run(self) from subprocess import call call(['python', 'scriptname.py'], cwd=self.install_lib + 'packagename') setup( ... cmdclass={'install':