Install-app of a custom app that requires erpnext fails in develop

Dear colleagues,

I have a custom app that requires erpnext. Therefore, requirements.txt looks like this:

frappe
erpnext

Installing the app on a production system works without issues. When running

sudo bench get-app https://github.com/(user)/(repo).git

on a development machine (which has frappe and erpnext installed and up to date), throws this error:

INFO:bench.app:installing woocommerceconnector
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/woocommerceconnector --no-cache-dir
  Could not find a version that satisfies the requirement erpnext (from woocommerceconnector==1.0.0) (from versions: )
No matching distribution found for erpnext (from woocommerceconnector==1.0.0)
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/make.py", line 40, in get_app
    get_app(git_url, branch=branch)
  File "/home/frappe/.bench/bench/app.py", line 133, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
  File "/home/frappe/.bench/bench/app.py", line 164, in install_app
    find_links=find_links))
  File "/home/frappe/.bench/bench/utils.py", line 153, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q  -e ./apps/woocommerceconnector --no-cache-dir

Removing the requirement gets it to working, but is not good because the app does require erpnext… Anyone has an idea why the develop system does not find erpnext (Could not find a version that satisfies the requirement erpnext)? Any hints appreciated…

Resolved in Create new app failed with error Command "python setup.py egg_info" failed with error code 1

To resolve this, open the setup.py file and correct

install_requires = f.read().strip().split('
')

to

install_requires = f.read().strip().split('\n')