I have a problem with pip && setuptools. I have a simple project here: https://github.com/rmuslimov/rapidlog
If I make these commands:
mkvirtualenv rtests
pip install git+file:///%path_to_this_project%
rapidagent # This my app in this project
It works properly and creates templates and static files.
If I do:
mkvirtualenv rtests
cd %path_to_this_project%
python setup.py install
rapidagent
It cannot install my templates and static files data. So I can't start my application.
Here is the end of my setup.py file:
entry_points={
'console_scripts': [
'rapidagent = rapidlog.web.webagent:main'
],
},
include_package_data=True,
data_files=[('rapidlog/web/templates', ['rapidlog/web/templates/index.html']),
('rapidlog/web/static/css', glob('rapidlog/web/static/css/*')),
('rapidlog/web/static/images', glob('rapidlog/web/static/images/*')),
('rapidlog/web/static/js', glob('rapidlog/web/static/js/*')),
],
install_requires=[
'pika>=0.9.5',
'tornado>=2.3',
'wsgiref>=0.1.2',
],
classifiers=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python'
]
What special command does pip call ? What is the better way to solve this?
.eggzip file. I think the first thing to try is to addzip_safe=Falseto yoursetupcall. The next is creating aMANIFEST.infile instead of usingdata_files.