mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Tries to create exe for Windows. Adds dll for wx. Go for Linux first
This commit is contained in:
@@ -180,7 +180,7 @@ either expressed or implied, of the FreeBSD Project."""
|
||||
|
||||
info.SetIcon(wx.Icon('ivolution/data/media/vitruve.png', wx.BITMAP_TYPE_PNG))
|
||||
info.SetName('Ivolution')
|
||||
info.SetVersion('0.8')
|
||||
info.SetVersion('0.6')
|
||||
info.SetDescription(description)
|
||||
info.SetCopyright('(C) 2012 Julien Lengrand-Lambert')
|
||||
info.SetWebSite('http://www.lengrand.fr')
|
||||
|
||||
BIN
msvcp90.dll
Normal file
BIN
msvcp90.dll
Normal file
Binary file not shown.
53
setup.py
53
setup.py
@@ -3,16 +3,6 @@ Created on 19 avr. 2012
|
||||
|
||||
@author: julien Lengrand-Lambert
|
||||
'''
|
||||
import sys
|
||||
# Check dependencies before installing anything
|
||||
# Refuse if necessary
|
||||
try:
|
||||
import cv # opencv python bindings
|
||||
from gi.repository import Gtk, GLib, GObject # GTK+ dependencies
|
||||
except ImportError:
|
||||
print "Some of the dependencies are missing. Please install them and try again"
|
||||
print "You can learn more about the dependencies in the documentation"
|
||||
sys.exit(0)
|
||||
|
||||
# creating executable here
|
||||
from distutils.core import setup
|
||||
@@ -24,31 +14,31 @@ personal_dir = "~/.ivolution"
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
|
||||
def create_personal():
|
||||
# creating personal folder
|
||||
if not os.path.exists(os.path.expanduser(personal_dir)):
|
||||
print os.path.expanduser(personal_dir)
|
||||
os.makedirs(os.path.expanduser(personal_dir))
|
||||
|
||||
# creating personal file
|
||||
log_root = 'fm.log'
|
||||
log_file = os.path.join(os.path.expanduser(personal_dir),log_root)
|
||||
if not os.path.exists(log_file):
|
||||
log_root = 'ivolution.log'
|
||||
log_file = os.path.join(os.path.expanduser(personal_dir), log_root)
|
||||
if not os.path.exists(log_file):
|
||||
print log_file
|
||||
open(log_file, 'w').close()
|
||||
open(log_file, 'w').close()
|
||||
|
||||
os.chmod(log_file, 02777) # allow read write access
|
||||
os.chmod(log_file, 02777) # allow read write access
|
||||
|
||||
setup(
|
||||
name = "Ivolution",
|
||||
version = "0.5.1",
|
||||
author = "Julien Lengrand-Lambert",
|
||||
author_email = "julien@lengrand.fr",
|
||||
description = ("Timelapse creation using Face Recognition"),
|
||||
license = "BSD License",
|
||||
keywords = "image_processing computer_vision one_picture_a_day photography",
|
||||
url = "http://jlengrand.github.com/FaceMovie/",
|
||||
download_url = "http://jlengrand.github.com/FaceMovie/",
|
||||
name="Ivolution",
|
||||
version="0.6",
|
||||
author="Julien Lengrand-Lambert",
|
||||
author_email="julien@lengrand.fr",
|
||||
description=("Timelapse creation using Face Recognition"),
|
||||
license="BSD License",
|
||||
keywords="image_processing computer_vision one_picture_a_day photography timelapse face_recognition",
|
||||
url="http://jlengrand.github.com/FaceMovie/",
|
||||
download_url="http://jlengrand.github.com/FaceMovie/",
|
||||
packages=['ivolution', 'ivolution.util', 'ivolution.gui', 'ivolution.data'],
|
||||
long_description=read('README.markdown'),
|
||||
classifiers=[
|
||||
@@ -57,17 +47,18 @@ setup(
|
||||
"Topic :: Multimedia :: Video :: Conversion",
|
||||
"Topic :: Scientific/Engineering :: Image Recognition",
|
||||
"Intended Audience :: End Users/Desktop",
|
||||
"Environment :: X11 Applications :: GTK",
|
||||
"Environment :: Console",
|
||||
"Environment :: Win32 (MS Windows)",
|
||||
"Environment :: X11 Applications",
|
||||
"License :: OSI Approved :: BSD License",
|
||||
"Natural Language :: English",
|
||||
"Operating System :: Unix",
|
||||
"Operating System :: Microsoft :: Windows",
|
||||
"Programming Language :: Python :: 2 :: Only",
|
||||
],
|
||||
#data_files = data_files,
|
||||
scripts=['Ivolutioner', 'Facemoviefier'],
|
||||
package_dir={'ivolution.data' : 'ivolution/data'},
|
||||
package_data={'ivolution.data' : ['haarcascades/*', 'samples/*', 'ui/*', 'media/*']},
|
||||
#data_files = data_files,
|
||||
scripts=['Ivolutioner'],
|
||||
package_dir={'ivolution.data': 'ivolution/data'},
|
||||
package_data={'ivolution.data': ['haarcascades/*', 'samples/*', 'media/*']},
|
||||
)
|
||||
|
||||
create_personal()
|
||||
|
||||
18
setup_win.py
Normal file
18
setup_win.py
Normal file
@@ -0,0 +1,18 @@
|
||||
'''
|
||||
Created on 31 aug. 2012
|
||||
|
||||
@author: jll
|
||||
'''
|
||||
# creating executable here
|
||||
from distutils.core import setup
|
||||
import py2exe
|
||||
import sys
|
||||
|
||||
sys.argv.append('py2exe')
|
||||
sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT")
|
||||
|
||||
setup(
|
||||
options = {'py2exe': {'bundle_files': 1, 'includes': ['numpy', 'wx'] } },
|
||||
console=['Ivolutioner'],
|
||||
zipfile = None,
|
||||
)
|
||||
Reference in New Issue
Block a user