Closed cshjin closed 9 years ago
FYI, wiki has full documentation on packaging: https://github.com/dpinney/omf/wiki/Packaging-the-OMF-for-Distribution-(PyPI,-etc.)
In existing setup.py file, install_requires is used to list the dependencies from requirements.txt. The code: install_requires = open("requirements.txt").readlines(),
When I print this list, it has new line character in each dependency name. This could have been a problem. A fix to strip new line characters : a lambda function can be used - reqmt_list = map(lambda s: s.strip(), reqmt_list) Working on this.
with open('requirements.txt','r') as inFile:
x = inFile.read().split('\n')
Hi David, I am trying to test the installation on windows VM. What about this change that we made(ref : previous comment) Do I just check-in that change and then get the latest from github to test installation?
Testing installation on Windows VM. Getting error while installing numpy. The issue is duplicate of https://github.com/numpy/numpy/issues/1458
Searching possible solutions for this.
Installed numpy using pip. After installation,upon running web.py, getting following error:
C:\Users\Asus\Desktop\omf-0.2\omf>python web.py
Traceback (most recent call last):
File "web.py", line 8, in
Hi David, Can you suggest what may be the cause of this problem?
It appears you don't have NREL's SAM installed. https://sam.nrel.gov.
No David, I have SAM installed. Looks like its the same problem of C:\Program Files (x86) in path not being recognized after SAM installation. Unfortunately I have forgotten what was my fix last time I got this problem. I am looking for a new fix.
Still the same error. Tried some fixes. Ref: https://sam.nrel.gov/content/sscdll-load-error
After finding out there's no way to get pip to install some of our requirements, and that the git clone installation path is very fast, let's drop support for the .zip package installation.
I'm updating the install instructions to make them a lot clearer.
Eventually, supporting a set of .exe/.deb/.rpm installation packages could be useful. But not now.
Maybe one suggestion, you could create a release tag there https://github.com/dpinney/omf/releases if possible and provide a zip file under the release tab seems nice.
Better to put a set of .exe/.deb/.rpm there. The ultimate goal is one click install.
version = '0.1'
insetup.py
to a proper one;python setup.py sdist
It should have different versions in dist folder.