updates to allow pip packages to install cleanly

@kdodia can you test this out?
If you swap out this line with
`    installing = any(arg in sys.argv for arg in ('install', 'develop', 'sdist', '--install_js'))`
it covers pip installs and upgrades just fine.