How to make a private module pip installable?How do I check whether a file exists without exceptions?How to make a chain of function decorators?How to make a flat list out of list of listsHow to upgrade all Python packages with pip?How do I install pip on Windows?Is it possible to use pip to install a package from a private GitHub repository?Installing specific package versions with pipNo module named pkg_resourcesInstalling Python packages from local file system folder to virtualenv with pipHow do I install pip on macOS or OS X?

What does "see" in "the Holy See" mean?

Is there a reason why I should not use the HaveIBeenPwned API to warn users about exposed passwords?

Would all these three things have the exact same effect on the flight duration of a glider?

Melee or Ranged attacks by Monsters, no distinction in modifiers?

How to store my pliers and wire cutters on my desk?

Make AES more secure by randomising the blocks in an encrypted file

Character is called by their first initial. How do I write it?

What is the most common end of life issue for a car?

How to avoid theft of intellectual property when trying to obtain a Ph.D?

Polyhedra, Polyhedron, Polytopes and Polygon

Finding minimum time for vehicle to reach to its destination

If Trump gets impeached, how long would Pence be president?

How to check what is edible on an alien world?

Is there a wealth gap in Boston where the median net worth of white households is $247,500 while the median net worth for black families was $8?

How to tar a list of directories only if they exist

Why was Sauron preparing for war instead of trying to find the ring?

Why didn't Britain or any other European power colonise Abyssinia/Ethiopia before 1936?

Decreasing star size

The Sword in the Stone

Examples of simultaneous independent breakthroughs

How to kill my goat in Goat Simulator

Is it legal for private citizens to "impound" e-scooters?

Isolated audio without a transformer

Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?



How to make a private module pip installable?


How do I check whether a file exists without exceptions?How to make a chain of function decorators?How to make a flat list out of list of listsHow to upgrade all Python packages with pip?How do I install pip on Windows?Is it possible to use pip to install a package from a private GitHub repository?Installing specific package versions with pipNo module named pkg_resourcesInstalling Python packages from local file system folder to virtualenv with pipHow do I install pip on macOS or OS X?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I have python package which need to be installed to run a Django project?



I go into the python virtual environment and clone the module from git in site-packages folder inside lib.



What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.










share|improve this question
























  • Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do pip install <folder-name> where the <folder-name> is the directory git created when you cloned. That should install the module to your virtual environment only.

    – Cfreak
    Mar 26 at 18:25











  • can you tell me a way using Pypi?

    – Nishant Ranjan
    Mar 26 at 18:29











  • Anything you upload to PyPi will be public. See @daniellong's answer

    – Cfreak
    Mar 26 at 18:49

















2















I have python package which need to be installed to run a Django project?



I go into the python virtual environment and clone the module from git in site-packages folder inside lib.



What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.










share|improve this question
























  • Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do pip install <folder-name> where the <folder-name> is the directory git created when you cloned. That should install the module to your virtual environment only.

    – Cfreak
    Mar 26 at 18:25











  • can you tell me a way using Pypi?

    – Nishant Ranjan
    Mar 26 at 18:29











  • Anything you upload to PyPi will be public. See @daniellong's answer

    – Cfreak
    Mar 26 at 18:49













2












2








2








I have python package which need to be installed to run a Django project?



I go into the python virtual environment and clone the module from git in site-packages folder inside lib.



What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.










share|improve this question
















I have python package which need to be installed to run a Django project?



I go into the python virtual environment and clone the module from git in site-packages folder inside lib.



What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.







python pip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 1 at 10:17







Nishant Ranjan

















asked Mar 26 at 18:20









Nishant RanjanNishant Ranjan

17 bronze badges




17 bronze badges












  • Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do pip install <folder-name> where the <folder-name> is the directory git created when you cloned. That should install the module to your virtual environment only.

    – Cfreak
    Mar 26 at 18:25











  • can you tell me a way using Pypi?

    – Nishant Ranjan
    Mar 26 at 18:29











  • Anything you upload to PyPi will be public. See @daniellong's answer

    – Cfreak
    Mar 26 at 18:49

















  • Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do pip install <folder-name> where the <folder-name> is the directory git created when you cloned. That should install the module to your virtual environment only.

    – Cfreak
    Mar 26 at 18:25











  • can you tell me a way using Pypi?

    – Nishant Ranjan
    Mar 26 at 18:29











  • Anything you upload to PyPi will be public. See @daniellong's answer

    – Cfreak
    Mar 26 at 18:49
















Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do pip install <folder-name> where the <folder-name> is the directory git created when you cloned. That should install the module to your virtual environment only.

– Cfreak
Mar 26 at 18:25





Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do pip install <folder-name> where the <folder-name> is the directory git created when you cloned. That should install the module to your virtual environment only.

– Cfreak
Mar 26 at 18:25













can you tell me a way using Pypi?

– Nishant Ranjan
Mar 26 at 18:29





can you tell me a way using Pypi?

– Nishant Ranjan
Mar 26 at 18:29













Anything you upload to PyPi will be public. See @daniellong's answer

– Cfreak
Mar 26 at 18:49





Anything you upload to PyPi will be public. See @daniellong's answer

– Cfreak
Mar 26 at 18:49












2 Answers
2






active

oldest

votes


















3














Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs



There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.



The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]. You can enforce privacy by restricting who has access to your git repository.






share|improve this answer






























    0














    To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt, and pip will fetch it and install it:



    -e git://github.com/<user>/<package>.git#egg=<package>


    (Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.






    share|improve this answer

























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55363890%2fhow-to-make-a-private-module-pip-installable%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs



      There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.



      The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]. You can enforce privacy by restricting who has access to your git repository.






      share|improve this answer



























        3














        Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs



        There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.



        The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]. You can enforce privacy by restricting who has access to your git repository.






        share|improve this answer

























          3












          3








          3







          Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs



          There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.



          The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]. You can enforce privacy by restricting who has access to your git repository.






          share|improve this answer













          Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs



          There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.



          The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]. You can enforce privacy by restricting who has access to your git repository.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 18:32









          Daniel LongDaniel Long

          2612 silver badges11 bronze badges




          2612 silver badges11 bronze badges























              0














              To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt, and pip will fetch it and install it:



              -e git://github.com/<user>/<package>.git#egg=<package>


              (Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.






              share|improve this answer



























                0














                To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt, and pip will fetch it and install it:



                -e git://github.com/<user>/<package>.git#egg=<package>


                (Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.






                share|improve this answer

























                  0












                  0








                  0







                  To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt, and pip will fetch it and install it:



                  -e git://github.com/<user>/<package>.git#egg=<package>


                  (Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.






                  share|improve this answer













                  To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt, and pip will fetch it and install it:



                  -e git://github.com/<user>/<package>.git#egg=<package>


                  (Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 26 at 18:49









                  alexisalexis

                  35.8k10 gold badges68 silver badges124 bronze badges




                  35.8k10 gold badges68 silver badges124 bronze badges



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55363890%2fhow-to-make-a-private-module-pip-installable%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript