Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] virtualenv is not mandatory #14

Open
julienmalik opened this issue Feb 15, 2016 · 5 comments
Open

[doc] virtualenv is not mandatory #14

julienmalik opened this issue Feb 15, 2016 · 5 comments

Comments

@julienmalik
Copy link
Collaborator

on my ubuntu laptop, prosopopee runs fine with standard packages.

then from a site root :

  • python $CLONE_DIR/prosopopee/prosopopee.py

I find it much easier to work with than to manage ve activation/deactivation...

@Psycojoker
Copy link
Owner

In the python community, virtualenv is the defacto standard way of distributing and using python on every platform. Since we are more in a "applicative" approach than a python lib or framework, it might make sens to offer other ways of using it.

If you send a PR with an update of the README I'll merge it.

Another way to do that is to do a:

pip install --user prosopopee

And this in your bashrc

export PATH="$HOME/.local/bin:"$PATH

The only reserve I have regarding recommanding distro packages are that if we start to had more dependancies, they might no be packaged.

(Since we have a very standard usage of those packages that's not a big surprise (but a good one).)

@julienmalik
Copy link
Collaborator Author

Understood, and that was my opinion too. Currently the number of dependencies is so small that it seems useful to me to at least mention it. I'll do the appropriate PR

@julienmalik
Copy link
Collaborator Author

Hum since your latest code split, this does not work anymore...

/usr/bin/python ../prosopopee/prosopopee/prosopopee.py
Traceback (most recent call last):
  File "../prosopopee/prosopopee/prosopopee.py", line 10, in <module>
    from .cache import CACHE
ValueError: Attempted relative import in non-package
make: *** [site] Error 1

So sad I will have to use pip :)

@Psycojoker
Copy link
Owner

Damn, I'm not sure on how to fix this in a clean way :x

@julienmalik
Copy link
Collaborator Author

Not sure it is clean-pip-compliant, but in the root of the repo, adding a prosopopee.py file with :

#!/usr/bin/env python

from prosopopee import prosopopee

if __name__ == '__main__':
    prosopopee.main()

and I'm good to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants