ckaus / EpiPy

A tool for fitting epidemic models.
MIT License
3 stars 0 forks source link

Task: Verify the installation and remove scripts for Mac OS #8

Closed ckaus closed 8 years ago

ckaus commented 8 years ago

Branch: Christian

Please execute the scripts in scripts/ on your operating system (Mac OS).

  1. Pull or clone branch: christian
  2. In file install.sh and remove.sh comment out the instructions for Debian
  3. Execute in your terminal the install.sh script. Can you start the application in terminal with epipy ?
  4. Execute in your terminal the remove.sh script

If booth scripts exit without exceptions - everything is fine.

yenarhee commented 8 years ago

@ckaus I don't quite understand the first bullet point of step 7. Can you explain again what I should do if remove.sh works?

ckaus commented 8 years ago

@yenarhee

there was some mistakes in my files... please pull from my branch. I have updated the issue.

yenarhee commented 8 years ago

@ckaus Ok, I've just tried it out and it seems that it works.

Output from install.sh:

The directory '/Users/yena/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/yena/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from -r ../requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): scipy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from -r ../requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): pyqtgraph in /Library/Python/2.7/site-packages (from -r ../requirements.txt (line 3))
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
/usr/bin/python -E -c pass
TEST PASSED: /Library/Python/2.7/site-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating EpiPy.egg-info
writing EpiPy.egg-info/PKG-INFO
writing top-level names to EpiPy.egg-info/top_level.txt
writing dependency_links to EpiPy.egg-info/dependency_links.txt
writing entry points to EpiPy.egg-info/entry_points.txt
writing manifest file 'EpiPy.egg-info/SOURCES.txt'
reading manifest file 'EpiPy.egg-info/SOURCES.txt'
writing manifest file 'EpiPy.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.11-intel/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/epipy
copying epipy/__init__.py -> build/lib/epipy
copying epipy/main.py -> build/lib/epipy
creating build/lib/epipy/model
copying epipy/model/__init__.py -> build/lib/epipy/model
copying epipy/model/sir.py -> build/lib/epipy/model
creating build/lib/epipy/ui
copying epipy/ui/__init__.py -> build/lib/epipy/ui
copying epipy/ui/aboutdialog.py -> build/lib/epipy/ui
copying epipy/ui/mainwindow.py -> build/lib/epipy/ui
creating build/lib/epipy/utils
copying epipy/utils/__init__.py -> build/lib/epipy/utils
copying epipy/utils/csvmanager.py -> build/lib/epipy/utils
copying epipy/utils/logger.py -> build/lib/epipy/utils
copying epipy/ui/aboutdialog.ui -> build/lib/epipy/ui
copying epipy/ui/mainwindow.ui -> build/lib/epipy/ui
creating build/lib/epipy/resources
creating build/lib/epipy/resources/data
copying epipy/resources/data/data1.csv -> build/lib/epipy/resources/data
copying epipy/resources/data/liberia-2014.csv -> build/lib/epipy/resources/data
copying epipy/resources/data/README.md -> build/lib/epipy/resources/data
creating build/lib/epipy/resources/pictures
copying epipy/resources/pictures/clear.png -> build/lib/epipy/resources/pictures
copying epipy/resources/pictures/save.png -> build/lib/epipy/resources/pictures
creating build/bdist.macosx-10.11-intel
creating build/bdist.macosx-10.11-intel/egg
creating build/bdist.macosx-10.11-intel/egg/epipy
copying build/lib/epipy/__init__.py -> build/bdist.macosx-10.11-intel/egg/epipy
copying build/lib/epipy/main.py -> build/bdist.macosx-10.11-intel/egg/epipy
creating build/bdist.macosx-10.11-intel/egg/epipy/model
copying build/lib/epipy/model/__init__.py -> build/bdist.macosx-10.11-intel/egg/epipy/model
copying build/lib/epipy/model/sir.py -> build/bdist.macosx-10.11-intel/egg/epipy/model
creating build/bdist.macosx-10.11-intel/egg/epipy/resources
creating build/bdist.macosx-10.11-intel/egg/epipy/resources/data
copying build/lib/epipy/resources/data/data1.csv -> build/bdist.macosx-10.11-intel/egg/epipy/resources/data
copying build/lib/epipy/resources/data/liberia-2014.csv -> build/bdist.macosx-10.11-intel/egg/epipy/resources/data
copying build/lib/epipy/resources/data/README.md -> build/bdist.macosx-10.11-intel/egg/epipy/resources/data
creating build/bdist.macosx-10.11-intel/egg/epipy/resources/pictures
copying build/lib/epipy/resources/pictures/clear.png -> build/bdist.macosx-10.11-intel/egg/epipy/resources/pictures
copying build/lib/epipy/resources/pictures/save.png -> build/bdist.macosx-10.11-intel/egg/epipy/resources/pictures
creating build/bdist.macosx-10.11-intel/egg/epipy/ui
copying build/lib/epipy/ui/__init__.py -> build/bdist.macosx-10.11-intel/egg/epipy/ui
copying build/lib/epipy/ui/aboutdialog.py -> build/bdist.macosx-10.11-intel/egg/epipy/ui
copying build/lib/epipy/ui/aboutdialog.ui -> build/bdist.macosx-10.11-intel/egg/epipy/ui
copying build/lib/epipy/ui/mainwindow.py -> build/bdist.macosx-10.11-intel/egg/epipy/ui
copying build/lib/epipy/ui/mainwindow.ui -> build/bdist.macosx-10.11-intel/egg/epipy/ui
creating build/bdist.macosx-10.11-intel/egg/epipy/utils
copying build/lib/epipy/utils/__init__.py -> build/bdist.macosx-10.11-intel/egg/epipy/utils
copying build/lib/epipy/utils/csvmanager.py -> build/bdist.macosx-10.11-intel/egg/epipy/utils
copying build/lib/epipy/utils/logger.py -> build/bdist.macosx-10.11-intel/egg/epipy/utils
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/main.py to main.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/model/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/model/sir.py to sir.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/ui/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/ui/aboutdialog.py to aboutdialog.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/ui/mainwindow.py to mainwindow.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/utils/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/utils/csvmanager.py to csvmanager.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/epipy/utils/logger.py to logger.pyc
creating build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying EpiPy.egg-info/PKG-INFO -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying EpiPy.egg-info/SOURCES.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying EpiPy.egg-info/dependency_links.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying EpiPy.egg-info/entry_points.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying EpiPy.egg-info/top_level.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
epipy.ui.aboutdialog: module references __file__
epipy.ui.mainwindow: module references __file__
epipy.utils.csvmanager: module references __file__
epipy.utils.logger: module MAY be using inspect.stack
creating dist
creating 'dist/EpiPy-0.1-py2.7.egg' and adding 'build/bdist.macosx-10.11-intel/egg' to it
removing 'build/bdist.macosx-10.11-intel/egg' (and everything under it)
Processing EpiPy-0.1-py2.7.egg
creating /Library/Python/2.7/site-packages/EpiPy-0.1-py2.7.egg
Extracting EpiPy-0.1-py2.7.egg to /Library/Python/2.7/site-packages
Adding EpiPy 0.1 to easy-install.pth file
Installing epipy script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/EpiPy-0.1-py2.7.egg
Processing dependencies for EpiPy==0.1
Finished processing dependencies for EpiPy==0.1

Output from remove.sh:

The directory '/Users/yena/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling EpiPy-0.1:
  /Library/Python/2.7/site-packages/EpiPy-0.1-py2.7.egg
Proceed (y/n)? y
  Successfully uninstalled EpiPy-0.1
The directory '/Users/yena/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

After the installation, I was able to open Epipy with epipy command, and after the uninstallation, epipy command couldn't be found on the system any more.

I have OS X 10.11.2.

ckaus commented 8 years ago

@yenarhee great!

ckaus commented 8 years ago

@yenarhee @mitalbert Installation of EpiPy is now fully described in README.md. You SHOULD use the developer part of the installation, otherwise your changes will not apply to the "installed version of EpiPy".