I’m in develop branch. Everything is updated.
The errors in console after the bench get-app command are:
./env/bin/pip install -q -e ./apps/appname --no-cache-dir
Command “python setup.py egg_info” failed with error code 1 in /home/frappe/frappe-bench/apps/appname/
I find the appname directory created in ./apps, but it is not ready for installing to any site.
I had upgraded the pip version, but i returned to the 9.X just in case.
I have checked and tried many things reading this but the setup.py file I find in my app directory is more updated and different from the other escenarios.
This is my setup.py file:
-- coding: utf-8 --
from setuptools import setup, find_packages
from pip.req import parse_requirements
import re, ast
get version from version variable in appname/init.py
_version_re = re.compile(r’version\s+=\s+(.*)’)
with open(‘appname/init.py’, ‘rb’) as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode(‘utf-8’)).group(1)))
requirements = parse_requirements(“requirements.txt”, session="")
setup(
name=‘appname’,
version=version,
description=‘Desc’,
author=‘Author’,
author_email=‘myemail@gmail.com’,
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=[str(ir.req) for ir in requirements],
dependency_links=[str(ir._link) for ir in requirements if ir._link]
)