Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9080131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:00:18+00:00 2026-06-16T20:00:18+00:00

I created a custom paster command as described in http://pythonpaste.org/script/developer.html#what-do-commands-look-like . In my setup.py

  • 0

I created a custom paster command as described in http://pythonpaste.org/script/developer.html#what-do-commands-look-like. In my setup.py I have defined the entry point like this:

entry_points={
  'paste.global_paster_command' : [
    'xxx_new = xxxconf.main:NewXxx'
  ]
}

I’m inside an activated virtualenv and have installed my package via

python setup.py develop

If I run paster while inside my package folder, I see my custom command and I can run it via paster xxx .... But if I leave my package folder paster does not display my command anymore. I checked which paster and it’s the version of my virtualenv. I also started a python interpreter and imported xxxconf and it works fine.

I have no idea why my global command is not recognized when I’m outside my package folder!?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:00:20+00:00Added an answer on June 16, 2026 at 8:00 pm

    You are doing something wrong, it should work. This is the minimal working example, you can test it with your virtualenv:

    blah/setup.py:

    from setuptools import setup, find_packages
    
    setup(name='blah',
          version='0.1',
          packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
          include_package_data=True,
          zip_safe=False,
          entry_points={'paste.global_paster_command': [ "xxx_new = blah.xxx:NewXxx", ] },
          )
    

    blah/blah/xxx.py:

    from paste.script import command
    
    class NewXxx(command.Command):
        usage = "PREFIX"
        summary = "some command"
        group_name = "my group"
    

    blah/blah/__init__.py: empty.

    Now testing:

    $ pwd
    /tmp
    $ virtualenv paster
    New python executable in paster/bin/python
    Installing setuptools............done.
    Installing pip...............done.
    $ . paster/bin/activate
    (paster)$ pip install PasteScript
    Downloading/unpacking PasteScript
    [... skipping long pip output here ...]
    (paster)$ paster
    [...]
    Commands:
      create       Create the file layout for a Python distribution
      help         Display help
      make-config  Install a package and create a fresh config file/directory
      points       Show information about entry points
      post         Run a request for the described application
      request      Run a request for the described application
      serve        Serve the described application
      setup-app    Setup an application, given a config file
    
    (paster)$ cd blah/
    (paster)$ python setup.py develop
    running develop
    [... skipping setup.py output...]
    (paster)$ paster
    [...]
    Commands:
      create       Create the file layout for a Python distribution
      help         Display help
      make-config  Install a package and create a fresh config file/directory
      points       Show information about entry points
      post         Run a request for the described application
      request      Run a request for the described application
      serve        Serve the described application
      setup-app    Setup an application, given a config file
    
    my group:
      xxx_new      some command
    (paster)$ cd ~
    (paster)$ paster
    [...]
    Commands:
    [...]
      setup-app    Setup an application, given a config file
    
    my group:
      xxx_new      some command
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom UIView that I would like to use on multiple
I have created a UIMenuController and have set it a custom menu item like
I created custom adapter for listview which contain text and images, on click of
I've created custom toggle slide animation. Its working fine as expected but its not
I have created custom posts and I want one page in my site to
I have created custom jQuery UI widget called uiPopover, very similar to UI-dialog (in
I have created custom cell in which there are n number of image views.
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I created a custom UITableViewCell subclass which contains a button named testbtn . I
I created a custom viewscript for a zend form. In the form, there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.