AguaClara / aide

AguaClara Infrastructure Design Engine - a software tool that designs AguaClara water treatment plants and their components.
MIT License
0 stars 0 forks source link

Pip install for dependency packages #5

Closed oliver-leung closed 6 years ago

oliver-leung commented 6 years ago

Instead of leaving the entire source distributions (sdists) of the packages for our dependencies, we should instead be trying to run a local pip install on the user's computer. See this forum post for more information on our progress.

oliver-leung commented 6 years ago

@ethan92429 I noticed in the Fusion 360 forum post that you got the following message when running pip.main(['install', package]):

Collecting transliterate
  Downloading transliterate-1.10-py2.py3-none-any.whl (49kB)
2

I tried running the same function, but with a fake package, and got the following message:

Collecting foo
1

That leads me to believe that the last number is an error code. Unfortunately, the documentation for pip.main is basically nonexistent, so I opened an issue on the pip repo.

eak24 commented 6 years ago

@oliver-leung abandon the idea of using pip. This is too complex. Instead, I'll write a short Travis script that pip installs the required packages and pushes the aide package +the dependencies in one fell swoop. This way we don't have to think about pip, but we also don't have to figure out how to make it work in the Fusion environment.

oliver-leung commented 6 years ago

@ethan92429 Is this what you're talking about for the Travis script? If so, I can add it to each of the AIDE modules.